com.e1.mxdublin.evlist
Class EvAction
java.lang.Object
com.e1.mxdublin.core.SeqEvent
com.e1.mxdublin.evlist.EvAbstractItem
com.e1.mxdublin.evlist.EvAction
- All Implemented Interfaces:
- Cloneable, Comparable<EvAbstractItem>, Runnable
public class EvAction
- extends EvAbstractItem
A simple event that will execution an action. Only the play method is
supported.
|
Constructor Summary |
EvAction(Executable exec)
Execute the 'executable' at 'tm' |
|
Method Summary |
boolean |
isLike(EvAbstractItem comp)
Returns true if the content of this event is the same than
event item 'comp'. |
void |
play()
Tells this event to execute. |
Element |
toXML()
Force this object not to be XML serializable. |
| Methods inherited from class com.e1.mxdublin.evlist.EvAbstractItem |
appendDefinedProperties, bang, cancel, clone, compareTo, equals, fromXML, getGroupProperties, getTm, getValue, isSameGroupProperties, loadElement, repr, run, setProperties, setProperty, setTm, setTm, setValue, stop, toString |
EvAction
public EvAction(Executable exec)
- Execute the 'executable' at 'tm'
- Parameters:
exec - the action to execute
play
public void play()
- Description copied from class:
EvAbstractItem
- Tells this event to execute.
- Specified by:
play in class EvAbstractItem
isLike
public boolean isLike(EvAbstractItem comp)
- Description copied from class:
EvAbstractItem
- Returns true if the content of this event is the same than
event item 'comp'. Unlike equals(Object o), the event time
is not compared.
- Specified by:
isLike in class EvAbstractItem
- Parameters:
comp - the event item to compare
- Returns:
- returns true is the content is the same
toXML
public Element toXML()
- Force this object not to be XML serializable.
- Overrides:
toXML in class EvAbstractItem
- Returns:
- Element representation of this event