|
||||||||||
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.
Constructor Summary | |
QueuedAction(String fromRole,
Action action,
double timeToExecute)
Creates a QueuedAction object. |
Method Summary | |
int |
compareTo(Object a)
Compares this object with the specified object for order. |
boolean |
equals(Object other)
Indicates whether some other object is "equal to" this one. |
Action |
getAction()
Gets the Action attribute of the QueuedAction object. |
String |
getFromRole()
Gets the FromRole attribute of the QueuedAction object. |
double |
getTimeToExecute()
Gets the TimeToExecute attribute of the QueuedAction object. |
void |
setTimeToExecute(double newTimeToExecute)
Sets the TimeToExecute attribute of the QueuedAction object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QueuedAction(String fromRole, Action action, double timeToExecute)
fromRole
- The commanding role.action
- The action to be executed.timeToExecute
- The time when the next checkpoint will be
executed.Method Detail |
public void setTimeToExecute(double newTimeToExecute)
newTimeToExecute
- The new TimeToExecute value.public Action getAction()
public String getFromRole()
public double getTimeToExecute()
public boolean equals(Object other)
equals
in class Object
other
- The other object.true
if this object is the same as the obj
argument; false
otherwise.public int compareTo(Object a)
compareTo
in interface Comparable
other
- The other object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |