Package jadex.bridge.component.impl
Class ExecutionComponentFeature.TimerWrapper
- java.lang.Object
-
- jadex.bridge.component.impl.ExecutionComponentFeature.TimerWrapper
-
- All Implemented Interfaces:
ITimer
- Enclosing class:
- ExecutionComponentFeature
protected class ExecutionComponentFeature.TimerWrapper extends java.lang.Object implements ITimer
Wrap a timer and remove it from the agent when it is cancelled.
-
-
Constructor Summary
Constructors Constructor Description TimerWrapper(ITimer timer)
Wrap a timer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Cancel the timer.boolean
equals(java.lang.Object obj)
long
getNotificationTime()
Get the next notification time.ITimedObject
getTimedObject()
Get the timed object associated with this timer.int
hashCode()
void
setNotificationTime(long time)
Change notification time.java.lang.String
toString()
-
-
-
Constructor Detail
-
TimerWrapper
public TimerWrapper(ITimer timer)
Wrap a timer.
-
-
Method Detail
-
cancel
public void cancel()
Description copied from interface:ITimer
Cancel the timer.
-
getNotificationTime
public long getNotificationTime()
Description copied from interface:ITimer
Get the next notification time.- Specified by:
getNotificationTime
in interfaceITimer
- Returns:
- The notification time.
-
getTimedObject
public ITimedObject getTimedObject()
Description copied from interface:ITimer
Get the timed object associated with this timer.- Specified by:
getTimedObject
in interfaceITimer
- Returns:
- The timed object.
-
setNotificationTime
public void setNotificationTime(long time)
Description copied from interface:ITimer
Change notification time.- Specified by:
setNotificationTime
in interfaceITimer
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-