|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.arch4j.clientcontroller.State
This abstract
class defines basic behavior for a state.
All deriving state implementations should have a section of javadoc in the class heading based on the following:
Constructor Summary | |
State()
Constructs a State object. |
Method Summary | |
protected void |
appendTransition(Transition aTransition)
Allows subclasses to specify Transition s. |
abstract void |
buildTransitionList()
Build the transitionList of Transition s available
from this State . |
protected void |
createEmbeddedStateMachine(Transition entryTransition,
StateContext context)
Helper method to create an embedded StateMachine . |
protected void |
createEmbeddedStateMachine(Transition entryTransition,
Transition exitTransition,
StateContext context)
Helper method to create an embedded StateMachine . |
void |
entryAction(StateContext context)
Perform the entry action for this state. |
void |
exitAction(StateContext context)
Perform the exit action for this state. |
protected StateMachine |
getEmbeddedStateMachine()
Retrieves the embedded state machine. |
abstract String |
getStateName()
Retrieves the unique state name. |
protected List |
getTransitionList()
Retrieve the list of Transition s available from this
State . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public State()
State
object. Subclass constructors will call
this default constructor implicitly.
Method Detail |
protected void appendTransition(Transition aTransition)
Transition
s. Note that the order
the Transition
s are added implies priority. If two
Transition
s are not mutually exclusive in their events and
guard conditions, then the first in the list will execute and the second
will not.
buildTransitionList()
protected void createEmbeddedStateMachine(Transition entryTransition, StateContext context) throws StateMachineException
StateMachine
.
StateMachineException
- if there is any problem processing the request. This might include a missing
key-value, application server problems, failed domain validation, or
data access errors.protected void createEmbeddedStateMachine(Transition entryTransition, Transition exitTransition, StateContext context) throws StateMachineException
StateMachine
.
StateMachineException
- if there is any problem processing the request. This might include a missing
key-value, application server problems, failed domain validation, or
data access errors.protected StateMachine getEmbeddedStateMachine()
null
.protected final List getTransitionList()
Transition
s available from this
State
.
public abstract String getStateName()
public void entryAction(StateContext context) throws StateMachineException
createEmbeddedStateMachine
should go here as well.
StateMachineException
- if there is a system related problem processing the request. This might
be a missing key-value, application server problems, failed domain
validation, or data access errors.public void exitAction(StateContext context) throws StateMachineException
StateMachineException
- if there is a system related problem processing the request. This might
be a missing key-value, application server problems, failed domain
validation, or data access errors.public abstract void buildTransitionList()
transitionList
of Transition
s available
from this State
. The implementation method will use
addTransition
to add new Transition
s.
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |