Class StatePattern.AState


abstract class AState
extends Object
This class is the abstract representation of the state of the Context. All calls delegated to the abstract state are given the additional input parameter of reference to back to the calling Context.


Method Index

 o aMethod (Object, Context)
A generic method representing any state-dependent behavior

Methods

 o aMethod
abstract Object aMethod(Object aParam, Context context)
A generic method representing any state-dependent behavior.

Parameters:
aParam - A generic input parameter.
context - The Context in which the concrete state operates.
Returns:
A generic return value.