com.ptc.windchill.upgrade.util.fsm
Class Reaction
java.lang.Object
com.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.
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 |
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.
Reaction
protected Reaction()
- Protected constructor requires subclassing to create new types of reactions.
execute
abstract void execute(Event event)
- A package internal method: invoked to execute the action