com.ptc.windchill.upgrade.util.fsm
Class StopStateDefinition.StopState

java.lang.Object
  extended bycom.ptc.windchill.upgrade.util.fsm.State
      extended bycom.ptc.windchill.upgrade.util.fsm.StopStateDefinition.StopState
Enclosing class:
StopStateDefinition

public static final class StopStateDefinition.StopState
extends State

An out-of-the-box state class used for all state machine stop states.

A StopState will remember the event that led to the transition to it. This will allow clients of state machines to access information about the state machine's termination.


Field Summary
private  Event activatingEvent_
           
 
Fields inherited from class com.ptc.windchill.upgrade.util.fsm.State
 
Constructor Summary
(package private) StopStateDefinition.StopState(StateMachine sm, StateDefinition sd)
           
 
Method Summary
protected  void activate(Event activating_event)
          When invoked, stores the event that caused the transition to an activation of this stop state.
 Event getActivatingEvent()
          The event that caused the transition to this stop state.
 String toString()
          Provides a simple description.
 
Methods inherited from class com.ptc.windchill.upgrade.util.fsm.State
deactivate, getEventTypes, getStateDefinition, getStateMachine, getStateMachine, handleEvent, isEventTypeEnabled, isStartState, isStateDefinition, isStopState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

activatingEvent_

private Event activatingEvent_
Constructor Detail

StopStateDefinition.StopState

StopStateDefinition.StopState(StateMachine sm,
                              StateDefinition sd)
Method Detail

activate

protected void activate(Event activating_event)
When invoked, stores the event that caused the transition to an activation of this stop state.

Overrides:
activate in class State

getActivatingEvent

public Event getActivatingEvent()
The event that caused the transition to this stop state.


toString

public String toString()
Provides a simple description.