com.ptc.windchill.upgrade.util.fsm
Class AbstractReaction

java.lang.Object
  extended bycom.ptc.windchill.upgrade.util.fsm.Reaction
      extended bycom.ptc.windchill.upgrade.util.fsm.AbstractReaction
Direct Known Subclasses:
AbstractState.NonExpressPhaseDone, AbstractState.NonExpressPhaseDone, AbstractStateWithThreadedWork.Cancel, AbstractStateWithThreadedWork.Cancel, ExampleApplication.Restart, Restart, SequencedReactions

public abstract class AbstractReaction
extends Reaction

A generic base Reaction class that allows for custom behavior on execution.


Nested Class Summary
 
Nested classes inherited from class com.ptc.windchill.upgrade.util.fsm.Reaction
 
Field Summary
 
Fields inherited from class com.ptc.windchill.upgrade.util.fsm.Reaction
NOOP
 
Constructor Summary
protected AbstractReaction()
           
 
Method Summary
(package private)  void execute(Event event)
          A package internal method: invokes a subclass-defined method.
protected abstract  void onExecute(Event event)
          Implement action behavior by overriding this method.
 String toString()
          A simple default description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractReaction

protected AbstractReaction()
Method Detail

execute

final void execute(Event event)
A package internal method: invokes a subclass-defined method.

Specified by:
execute in class Reaction

onExecute

protected abstract void onExecute(Event event)
Implement action behavior by overriding this method.


toString

public String toString()
A simple default description.