|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gecco.server.actionprocessor.QueuedAction
This class is a wrapper object that is stored in the priority queue in the ActionProcessor.
Field Summary | |
private long |
absoluteTimeToExecute
Description of the Field |
private Action |
action
Description of the Field |
private String |
fromRole
Description of the Field |
Constructor Summary | |
QueuedAction(String _fromRole,
Action _action,
long absoluteTimeToExecute)
Instanciates a QueuedAction object. |
Method Summary | |
int |
compareTo(Object a)
Description of the Method |
boolean |
equals(Object a)
Description of the Method |
Action |
getAction()
Gets the Action attribute of the QueuedAction object |
String |
getFromRole()
Gets the FromRole attribute of the QueuedAction object |
long |
getTimeToExecute()
Gets the TimeToExecute attribute of the QueuedAction object |
void |
setTimeToExecute(long newTimeToExecute)
Sets the TimeToExecute attribute of the QueuedAction object |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Action action
private String fromRole
private long absoluteTimeToExecute
Constructor Detail |
public QueuedAction(String _fromRole, Action _action, long absoluteTimeToExecute)
_fromRole
- The commanding role_action
- The action to be executedabsoluteTimeToExecute
- The time to execute next checkpoint for
the actionMethod Detail |
public void setTimeToExecute(long newTimeToExecute)
newTimeToExecute
- The new TimeToExecute valuepublic Action getAction()
public String getFromRole()
public long getTimeToExecute()
public boolean equals(Object a)
equals
in class Object
a
- Description of Parameterpublic int compareTo(Object a)
compareTo
in interface Comparable
a
- Description of Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |