it.amattioli.workstate.core
Class PseudoState

Show UML class diagram
java.lang.Object
  extended by it.amattioli.workstate.core.State
      extended by it.amattioli.workstate.core.PseudoState
All Implemented Interfaces:
AttributeReader
Direct Known Subclasses:
FinalState, InitialState, JunctionPoint

public abstract class PseudoState
extends State


Constructor Summary
PseudoState(MetaPseudoState metaState, CompositeState parent)
           
 
Method Summary
 boolean admitEvent(Event event)
           
 Map<String,Object> getAllAttributes()
          Return all the attributes of this state.
 Object getAttribute(String tag)
          Return the value of an attribute of this state.
protected  StateMemento getMemento(StateMemento parent)
           
 void receiveEvent(Event event)
           
 void restore(StateMemento memento)
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PseudoState

public PseudoState(MetaPseudoState metaState,
                   CompositeState parent)
Method Detail

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.