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

java.lang.Object
  extended bycom.ptc.windchill.upgrade.util.fsm.Reaction
Direct Known Subclasses:
AbstractReaction, ConditionalReaction, Reaction.NoopReaction, Transition

public abstract class Reaction
extends Object

Reaction are behavior taken by a StateMachine upon receiving events.


Nested Class Summary
private static class Reaction.NoopReaction
           
 
Field Summary
static Reaction NOOP
          An reaction that does nothing.
 
Constructor Summary
protected Reaction()
          Protected constructor requires subclassing to create new types of reactions.
 
Method Summary
(package private) abstract  void execute(Event event)
          A package internal method: invoked to execute the action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOOP

public static Reaction NOOP
An reaction that does nothing. This is convenient for registering an event that should be enabled always, but which may sometimes do nothing.

Constructor Detail

Reaction

protected Reaction()
Protected constructor requires subclassing to create new types of reactions.

Method Detail

execute

abstract void execute(Event event)
A package internal method: invoked to execute the action