Class StatePattern.ConcreteStateA
- class ConcreteStateA
- extends StatePattern.AState
A concrete state representing a particular state of Context. This state should do only the behaviors specific to its state.
*

aMethod
(Object, Context)
- A representation of a generic state-dependent method

aMethod
Object aMethod(Object aParam, Context context)
- A representation of a generic state-dependent method. All the processing particular to this sate is done here.
A state transition can be done by referencing the Context input variable and calling context.setState( [instance of a concrete state[)).
- Parameters:
- aParam - A generic input parameter(s)
- context - A reference to this state's Context object.
- Returns:
- A generic return value