|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.ericsson.eto.norarc.javaframe.State
se.ericsson.eto.norarc.javaframe.CompositeState
CompositeState is a State
with inner States.
A CompositeState has 1 or more entry and exit ports that connects
the CompositeState to its environment.
The ports are identified by an entry index or an exit index (int).
A CompositeState may have a default entry port (not identified by an index).
Field Summary |
Fields inherited from class se.ericsson.eto.norarc.javaframe.State |
enclosingState, stateName |
Constructor Summary | |
CompositeState()
CompositeState constructor with default name. |
|
CompositeState(java.lang.String sn)
CompositeState constructor with user supplied name. |
Method Summary | |
void |
enterState(int enterNo,
StateMachine curfsm)
Enter this CompositeState through a given entry port. |
void |
enterState(StateMachine curfsm)
Enter this CompositeState through the default entry port. |
protected abstract boolean |
execTrans(Message sig,
State st,
StateMachine curfsm)
Execute transition (if defined) for Message sig and State st. |
protected void |
exitState(int exitNo,
StateMachine curfsm)
Leave this CompositeState through a given exit port. |
protected void |
outofInnerCompositeState(CompositeState cs,
int exNo,
StateMachine curfsm)
Executes linking code when an inner CompositeState leaves through a given exit port. |
protected void |
performExit(StateMachine curfsm)
Execute exit() from currentState up to (but not including) this CompositeState. |
protected void |
sameState(StateMachine curfsm)
Remain in the same State of the StateMachine. |
protected void |
save(Message sig,
StateMachine curfsm)
The received Message is not to be consumed and handled in this State and the Message is saved in order to be handled later in another State. |
Methods inherited from class se.ericsson.eto.norarc.javaframe.State |
entry, exit, output, stateName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CompositeState(java.lang.String sn)
sn
- The name of this CompositeState.public CompositeState()
Method Detail |
protected final void exitState(int exitNo, StateMachine curfsm)
exitNo
- Index of the exit port.curfsm
- The current StateMachine.protected final void performExit(StateMachine curfsm)
curfsm
- The current StateMachine.protected final void sameState(StateMachine curfsm)
curfsm
- The current StateMachine.protected final void save(Message sig, StateMachine curfsm)
sig
- The Message that will be saved (assumed to be != null).curfsm
- The StateMachine that conceptually performs this operation
(assumed to be != null).public void enterState(int enterNo, StateMachine curfsm)
enterNo
- Index of the entry port.curfsm
- The current StateMachine.public void enterState(StateMachine curfsm)
enterState
in class State
curfsm
- The current StateMachine.protected abstract boolean execTrans(Message sig, State st, StateMachine curfsm)
sig
- The consumed Message.st
- The State to search for defined transition.curfsm
- The performing StateMachine.
protected void outofInnerCompositeState(CompositeState cs, int exNo, StateMachine curfsm)
cs
- The inner CompositeState that is leaving.exNo
- Index of the exit port of the inner CompositeState.curfsm
- The current StateMachine.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |