Class StatePattern.ConcreteStateB
- class ConcreteStateB
- 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[)).ete state[)).
- Parameters:
- aParam - A generic input parameter(s)
- context - A reference to this state's Context
- Returns:
- A generic return value