it.amattioli.workstate.core
Class CompositeState

Show UML class diagram
java.lang.Object
  extended by it.amattioli.workstate.core.State
      extended by it.amattioli.workstate.core.RealState
          extended by it.amattioli.workstate.core.CompositeState
All Implemented Interfaces:
AttributeHandler, AttributeReader, Receiver
Direct Known Subclasses:
ConcurrentState, SequentialState

public abstract class CompositeState
extends RealState


Field Summary
protected  Map<String,State> substates
           
 
Constructor Summary
CompositeState(MetaCompositeState metaState, CompositeState parent)
           
 
Method Summary
 void addAvailableEvents(Collection<MetaEvent> coll)
           
 boolean admitEvent(Event event)
           
 Event buildEvent(String name, Map<String,Object> stringParameters)
           
 boolean equals(Object o)
           
 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.
 void terminate()
           
 
Methods inherited from class it.amattioli.workstate.core.RealState
addAllAttributes, enter, getAllAttributes, getAttribute, getLocalAttributes, getTag, hasAllowedAttribute, hasOwnAttribute, reExit, restore, setAttribute, toString
 
Methods inherited from class it.amattioli.workstate.core.State
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
 

Field Detail

substates

protected Map<String,State> substates
Constructor Detail

CompositeState

public CompositeState(MetaCompositeState metaState,
                      CompositeState parent)
Method Detail

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.