it.amattioli.workstate.core
Class PseudoState
java.lang.Object
it.amattioli.workstate.core.State
it.amattioli.workstate.core.PseudoState
- All Implemented Interfaces:
- AttributeReader
- Direct Known Subclasses:
- FinalState, InitialState, JunctionPoint
public abstract class PseudoState
- extends State
| Methods inherited from class it.amattioli.workstate.core.State |
addAvailableEvents, buildEvent, checkActive, enter, equals, exit, findAncestor, getAvailableEvents, getId, getMemento, getParent, getRootMachine, hasMetaState, isActive, isRegion, reEnter, reExit |
PseudoState
public PseudoState(MetaPseudoState metaState,
CompositeState parent)
getAllAttributes
public Map<String,Object> getAllAttributes()
- Description copied from class:
State
- Return all the attributes of this state. A generic state has no
attributes. Sub-class of this must implement this method so to handle
attributes.
- Specified by:
getAllAttributes in interface AttributeReader- Overrides:
getAllAttributes in class State
getAttribute
public Object getAttribute(String tag)
- Description copied from class:
State
- Return the value of an attribute of this state. A generic state has no
attributes. Sub-class of this must implement this method so to handle
attributes.
- Specified by:
getAttribute in interface AttributeReader- Overrides:
getAttribute in class State
- Parameters:
tag - the attribute tag
- Returns:
- the attribute value
admitEvent
public boolean admitEvent(Event event)
- Specified by:
admitEvent in class State
receiveEvent
public void receiveEvent(Event event)
- Specified by:
receiveEvent in class State
getMemento
protected StateMemento getMemento(StateMemento parent)
- Specified by:
getMemento in class State
restore
public void restore(StateMemento memento)
- Specified by:
restore in class State
Copyright © 2011. All Rights Reserved.