|
Jadex 0.96-beta1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjadex.util.concurrent.Executor
jadex.util.concurrent.TimerService
public class TimerService
Active timing object for standalone platform. Calls timed object as requested.
Constructor Summary | |
---|---|
TimerService()
Create a new timer. |
Method Summary | |
---|---|
void |
addEntry(ITimedObject to,
long time)
Add a timing entry. |
boolean |
code()
The code to run on the timer thread. |
void |
execute()
Make sure a thread is executing the code. |
void |
removeEntry(ITimedObject to)
Remove a timing entry. |
void |
shutdown()
Shutdown the executor. |
Methods inherited from class jadex.util.concurrent.Executor |
---|
resume, run, suspend |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimerService()
Method Detail |
---|
public void addEntry(ITimedObject to, long time)
addEntry
in interface ITimerService
to
- The timed object to notify.time
- The absolute wakeup time.public void removeEntry(ITimedObject to)
removeEntry
in interface ITimerService
to
- The object to notify.public boolean code()
public void execute()
execute
in class Executor
public void shutdown()
shutdown
in interface ITimerService
shutdown
in class Executor
|
Jadex 0.96-beta1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.