|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gecco.server.clock.SleepingThread
Description of the Class
Field Summary | |
Thread |
thread
Description of the Field |
double |
wakeupTime
Description of the Field |
Constructor Summary | |
SleepingThread(Thread thread,
double wakeupTime)
Constructor for the SleepingThread object |
Method Summary | |
int |
compareTo(Object other)
Compares this sleeping thread with another sleeping thread. |
boolean |
equals(Object other)
Tests whether two sleeping threads are equal. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public Thread thread
public double wakeupTime
Constructor Detail |
public SleepingThread(Thread thread, double wakeupTime)
thread
- Description of ParameterwakeupTime
- Description of ParameterMethod Detail |
public boolean equals(Object other)
equals
in class Object
other
- Should be a SleepingThread
.
true
if a is equal to this automaton,
false
otherwise.public int compareTo(Object other)
compareTo
in interface Comparable
other
- Should be a SleepingThread
.
this
is less than other
,
0 if they are equal, 1 if this
is greater than
other
.public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |