Package jadex.platform.service.clock
Class TickTimer
- java.lang.Object
-
- jadex.platform.service.clock.Timer
-
- jadex.platform.service.clock.TickTimer
-
- All Implemented Interfaces:
ITimer
,java.io.Serializable
public class TickTimer extends Timer
A timer for waiting on clock ticks.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TickTimer(IClock clock, ITimedObject to)
Create a new timer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Cancel the timer.void
setNotificationTime(long time)
Change notification time.java.lang.String
toString()
Get the string representation.-
Methods inherited from class jadex.platform.service.clock.Timer
getNotificationTime, getNumber, getTimedObject
-
-
-
-
Constructor Detail
-
TickTimer
protected TickTimer(IClock clock, ITimedObject to)
Create a new timer.
-
-
Method Detail
-
cancel
public void cancel()
Cancel the timer.
-
setNotificationTime
public void setNotificationTime(long time)
Change notification time.- Specified by:
setNotificationTime
in interfaceITimer
- Overrides:
setNotificationTime
in classTimer
- Parameters:
The
- notification time.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-