|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.comp.tool.TimerList
Maintains a set of timers.
| Constructor Summary | |
TimerList()
|
|
| Method Summary | |
java.lang.Object |
cancel(Port timerPort_,
java.lang.Object key_)
Returns the object of the timer. |
void |
cancelAll(Port timerPort_)
Cancels all the timers. |
boolean |
containsKey(java.lang.Object key_)
Returns true if the timer list contains the key. |
java.lang.Object |
get(java.lang.Object key_)
Retrieves the timer object. |
java.lang.String |
info(java.lang.String prefix_)
|
void |
set(Port timerPort_,
java.lang.Object timer_,
double time_)
Sets a timer. |
void |
set(Port timerPort_,
java.lang.Object key_,
java.lang.Object timer_,
double time_)
Sets a timer. |
int |
size()
Returns the number of timers in the list. |
java.lang.Object |
timeout(Port timerPort_,
double now_)
Returns the object of the timer that expires and activates next if available. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TimerList()
| Method Detail |
public int size()
public void set(Port timerPort_,
java.lang.Object timer_,
double time_)
timer_ as key.
If the key exists, the timer is rescheduled.
public void set(Port timerPort_,
java.lang.Object key_,
java.lang.Object timer_,
double time_)
public java.lang.Object get(java.lang.Object key_)
public boolean containsKey(java.lang.Object key_)
public java.lang.Object timeout(Port timerPort_,
double now_)
public void cancelAll(Port timerPort_)
public java.lang.Object cancel(Port timerPort_,
java.lang.Object key_)
public java.lang.String info(java.lang.String prefix_)
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||