triveni
Class Action
java.lang.Object
|
+--triveni.Action
- public abstract class Action
- extends java.lang.Object
- implements java.lang.Cloneable
An action, that is, a piece of Java code parameterized by an event.
The user should override execute to provide the code
of the action.
The user should also override clone if the action
has state containing reference variables.
- See Also:
Init
|
Field Summary |
static Action |
NULL
An empty or null action. |
|
Method Summary |
java.lang.Object |
clone()
|
abstract void |
execute(LabeledEvent event)
This method provides the code of the action. |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
NULL
public static final Action NULL
- An empty or null action.
Action
public Action()
execute
public abstract void execute(LabeledEvent event)
throws java.lang.InterruptedException
- This method provides the code of the action. It should be overridden
by subclasses.
- Parameters:
event - the current event.- Throws:
- java.lang.InterruptedException - if the current thread is interrupted.
clone
public java.lang.Object clone()
- Overrides:
- clone in class java.lang.Object
http://www.cs.luc.edu/triveni/