|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.upgrade.util.fsm.State
A state within a StateMachine instance.
State instantiation is done via StateInstantiator at the request of StateMachines whenever a transition to a state occurs.
StateMachine
,
StateInstantiator
Field Summary | |
private StateDefinition |
stateDefinition_
|
private StateMachine |
stateMachine_
|
Constructor Summary | |
protected |
State(StateMachine state_machine,
StateDefinition state_definition)
|
Method Summary | |
protected void |
activate(Event activating_event)
Called by a StateMachine when transitioning to this State. |
protected void |
deactivate(Event deactivating_event)
Called by a StateMachine when transitioning away from this State. |
(package private) List |
getEventTypes()
A package internal method: return the event types registered with the state definition for this state |
(package private) StateDefinition |
getStateDefinition()
A package internal method: The state's StateDefinition |
StateMachine |
getStateMachine()
The State's StateMachine. |
StateMachine |
getStateMachine(Class sub_state_machine)
|
(package private) void |
handleEvent(Event event)
A package internal method: delegate the event handling to the state definition |
(package private) boolean |
isEventTypeEnabled(EventType event_type)
A package internal method: return whether events of the specified type are enabled for this state instance based on the results of the corresponding conditions |
boolean |
isStartState()
Indicate if this state is a start state. |
(package private) boolean |
isStateDefinition(StateDefinition state_definition)
A package internal method: whether this state's definition and the specified one are reference-equal |
boolean |
isStopState()
Indicate if this state is a stop state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private StateMachine stateMachine_
private StateDefinition stateDefinition_
Constructor Detail |
protected State(StateMachine state_machine, StateDefinition state_definition)
Method Detail |
final boolean isStateDefinition(StateDefinition state_definition)
final StateDefinition getStateDefinition()
final List getEventTypes()
final void handleEvent(Event event)
final boolean isEventTypeEnabled(EventType event_type)
public final StateMachine getStateMachine()
public final StateMachine getStateMachine(Class sub_state_machine)
public final boolean isStartState()
public final boolean isStopState()
protected void activate(Event activating_event)
Subtypes may override the method to allocate state resources and access event information. There is no need to invoke State.activate(Event) in this case.
protected void deactivate(Event deactivating_event)
Subtypes may override the method to ensure state resources are cleaned up. There is no need to invoke State.deactivate(Event) in this case.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |