|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.upgrade.util.fsm.StateDefinition
A description of a single state of a state machine (eg a MetaState). StateDefinitions record the events that a particular state can handle, and the actions that can be conditionally taken for each event type.
Field Summary | |
private HashMap |
handlers_
|
(package private) StateInstantiator |
stateInstantiator_
|
Constructor Summary | |
(package private) |
StateDefinition(StateInstantiator state_instantiator)
A package internal method: create an instance |
Method Summary | |
(package private) State |
createStateInstance(StateMachine state_machine)
A package internal method: use the state instantiator to create an instance of a state that uses this state definition. |
void |
describe()
Dumps a description of this state definition to System.out. |
private ArrayList |
getEnabledReactionsFor(EventType event_type,
State state)
A package internal method: determine what reactions are applicable for the specified event_type, evaluating the conditions agaist the provided state. |
(package private) List |
getEventTypes()
A package internal method: ask for the set of registered event types. |
(package private) void |
handleEvent(Event event)
A package internal method: perform reaaction for the specified event. |
(package private) boolean |
isEventTypeEnabled(EventType event_type,
State state)
A package internal method: return whether the EventType enabled for the particular state instance. |
(package private) void |
registerHandler(EventType event_type,
Condition condition,
Reaction reaction)
A package internal method: record that the reaction may be taken upon receiving events of type event_type, if the condition evaluates to true against the event's source state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final HashMap handlers_
final StateInstantiator stateInstantiator_
Constructor Detail |
StateDefinition(StateInstantiator state_instantiator)
Method Detail |
final State createStateInstance(StateMachine state_machine)
final void registerHandler(EventType event_type, Condition condition, Reaction reaction)
private ArrayList getEnabledReactionsFor(EventType event_type, State state)
final void handleEvent(Event event)
final boolean isEventTypeEnabled(EventType event_type, State state)
final List getEventTypes()
public void describe()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |