it.amattioli.workstate.core
Class CompositeState
java.lang.Object
it.amattioli.workstate.core.State
it.amattioli.workstate.core.RealState
it.amattioli.workstate.core.CompositeState
- All Implemented Interfaces:
- AttributeHandler, AttributeReader, Receiver
- Direct Known Subclasses:
- ConcurrentState, SequentialState
public abstract class CompositeState
- extends RealState
| Methods inherited from class it.amattioli.workstate.core.RealState |
addAllAttributes, enter, getAllAttributes, getAttribute, getLocalAttributes, getTag, hasAllowedAttribute, hasOwnAttribute, reExit, restore, setAttribute, toString |
substates
protected Map<String,State> substates
CompositeState
public CompositeState(MetaCompositeState metaState,
CompositeState parent)
exit
public void exit()
throws WorkflowException
- Description copied from class:
State
- Exit a state and de-activate it.
- Overrides:
exit in class RealState
- Throws:
WorkflowException
reEnter
protected void reEnter()
- Description copied from class:
State
- Re-enter a state that was exited for exception handling purposes.
- Overrides:
reEnter in class RealState
receiveEvent
public void receiveEvent(Event event)
throws WorkflowException
- Specified by:
receiveEvent in class State
- Throws:
WorkflowException
admitEvent
public boolean admitEvent(Event event)
- Specified by:
admitEvent in class State
getMemento
protected StateMemento getMemento(StateMemento parent)
- Specified by:
getMemento in class State
equals
public boolean equals(Object o)
- Overrides:
equals in class RealState
receive
public void receive(Visitor visitor)
terminate
public void terminate()
throws WorkflowException
- Throws:
WorkflowException
isComplete
public boolean isComplete()
buildEvent
public Event buildEvent(String name,
Map<String,Object> stringParameters)
throws WorkflowException
- Overrides:
buildEvent in class State
- Throws:
WorkflowException
addAvailableEvents
public void addAvailableEvents(Collection<MetaEvent> coll)
- Overrides:
addAvailableEvents in class State
Copyright © 2011. All Rights Reserved.