public class Timer
extends java.lang.Object
implements jadex.bridge.service.types.clock.ITimer, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.service.types.clock.IClock |
clock
The clock.
|
protected static int |
count
The instance count.
|
protected int |
number
The instance number.
|
protected long |
time
The time delta before the alarm.
|
protected jadex.bridge.service.types.clock.ITimedObject |
to
The timed object.
|
Modifier | Constructor and Description |
---|---|
protected |
Timer(long time,
jadex.bridge.service.types.clock.IClock clock,
jadex.bridge.service.types.clock.ITimedObject to)
Create a new timer.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the timer.
|
long |
getNotificationTime()
Get the next absolute alarm timepoint.
|
protected int |
getNumber()
Get the number.
|
jadex.bridge.service.types.clock.ITimedObject |
getTimedObject()
Get the timed object.
|
void |
setNotificationTime(long time)
Change notification time.
|
protected static int count
protected long time
protected jadex.bridge.service.types.clock.IClock clock
protected jadex.bridge.service.types.clock.ITimedObject to
protected int number
protected Timer(long time, jadex.bridge.service.types.clock.IClock clock, jadex.bridge.service.types.clock.ITimedObject to)
public long getNotificationTime()
getNotificationTime
in interface jadex.bridge.service.types.clock.ITimer
public jadex.bridge.service.types.clock.ITimedObject getTimedObject()
getTimedObject
in interface jadex.bridge.service.types.clock.ITimer
public void setNotificationTime(long time)
setNotificationTime
in interface jadex.bridge.service.types.clock.ITimer
The
- notification time.public void cancel()
cancel
in interface jadex.bridge.service.types.clock.ITimer
protected int getNumber()