public class VirtualClockService.VirtualClockHelperImp extends java.lang.Object implements VirtualClockHelper
| Constructor and Description |
|---|
VirtualClockService.VirtualClockHelperImp() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(jade.core.Agent a,
java.lang.Runnable b)
Execute.
|
double |
getCurrentTime(TimeUnit unit)
Gets the current time.
|
void |
init(jade.core.Agent a) |
void |
schedule(jade.core.Agent a,
java.lang.Runnable b,
long wakeupTime)
Schedule.
|
void |
updateClock()
Update clock.
|
void |
updateClock(long units)
Update clock.
|
public VirtualClockService.VirtualClockHelperImp()
public void init(jade.core.Agent a)
init in interface jade.core.ServiceHelperpublic double getCurrentTime(TimeUnit unit)
VirtualClockHelpergetCurrentTime in interface VirtualClockHelperunit - the unitpublic void schedule(jade.core.Agent a,
java.lang.Runnable b,
long wakeupTime)
VirtualClockHelperschedule in interface VirtualClockHelpera - the ab - the bwakeupTime - the wakeup timepublic void execute(jade.core.Agent a,
java.lang.Runnable b)
VirtualClockHelperexecute in interface VirtualClockHelpera - the ab - the bpublic void updateClock(long units)
VirtualClockHelperupdateClock in interface VirtualClockHelperunits - the unitspublic void updateClock()
VirtualClockHelperupdateClock in interface VirtualClockHelper