|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.amattioli.workstate.core.State
it.amattioli.workstate.core.RealState
it.amattioli.workstate.core.ReferenceState
public class ReferenceState
A ReferenceState is a state that represents a reference to another
state machine.
| Constructor Summary | |
|---|---|
ReferenceState(MetaReferenceState metaState,
CompositeState parent,
Configuration refReader)
Build a new reference state. |
|
| Method Summary | |
|---|---|
boolean |
admitEvent(Event event)
|
Event |
buildEvent(String name,
Map<String,Object> stringParameters)
|
void |
enter()
Enter this state and activate it. |
void |
exit()
Exit a state and de-activate it. |
protected StateMemento |
getMemento(StateMemento parent)
|
boolean |
isComplete()
|
void |
receive(Visitor visitor)
|
void |
receiveEvent(Event event)
|
protected void |
reEnter()
Re-enter a state that was exited for exception handling purposes. |
protected void |
reExit()
Re-exit a state that was entered for exception handling purposes. |
void |
restore(StateMemento memento)
|
void |
terminate()
|
| Methods inherited from class it.amattioli.workstate.core.RealState |
|---|
addAllAttributes, equals, getAllAttributes, getAttribute, getLocalAttributes, getTag, hasAllowedAttribute, hasOwnAttribute, setAttribute, toString |
| Methods inherited from class it.amattioli.workstate.core.State |
|---|
addAvailableEvents, checkActive, findAncestor, getAvailableEvents, getId, getMemento, getParent, getRootMachine, hasMetaState, isActive, isRegion |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReferenceState(MetaReferenceState metaState,
CompositeState parent,
Configuration refReader)
metaState - the MetaStateparent - the parent staterefReader - the configuration of the referenced machine| Method Detail |
|---|
public void receiveEvent(Event event)
throws WorkflowException
receiveEvent in class StateWorkflowExceptionpublic boolean admitEvent(Event event)
admitEvent in class Stateprotected StateMemento getMemento(StateMemento parent)
getMemento in class Statepublic void receive(Visitor visitor)
public void enter()
throws WorkflowException
State
enter in class RealStateWorkflowExceptionprotected void reEnter()
State
reEnter in class RealState
public void exit()
throws WorkflowException
State
exit in class RealStateWorkflowExceptionprotected void reExit()
State
reExit in class RealState
public Event buildEvent(String name,
Map<String,Object> stringParameters)
throws WorkflowException
buildEvent in class StateWorkflowException
public void terminate()
throws WorkflowException
WorkflowExceptionpublic boolean isComplete()
public void restore(StateMemento memento)
throws WorkflowException
restore in class RealStateWorkflowException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||