|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ants.messor.SimulatedTask
For the purpose of simulation, a task does not perform anything. It just implements a request identifier. In this simple implementation, all tasks are equal: i.e., they last
Constructor Summary | |
SimulatedTask()
|
Method Summary | |
boolean |
equals(Object obj)
Check whether this SimulatedTask is equal to the specified
object. |
int |
getLoad()
Returns the load associated to this task. |
NestId |
getNestId()
Unsupported operation |
int |
hashCode()
Returns a hash code value for the object. |
void |
run()
Method to be invoked to execute this task. |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SimulatedTask()
Method Detail |
public void run()
run
in interface Task
public int getLoad()
getLoad
in interface Task
public NestId getNestId()
getNestId
in interface RequestId
public boolean equals(Object obj)
SimulatedTask
is equal to the specified
object.
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |