Package io.ciera.runtime.summit.time
Class Timer
- java.lang.Object
-
- io.ciera.runtime.summit.time.Timer
-
- All Implemented Interfaces:
IXtumlType,Comparable<Timer>
public class Timer extends Object implements Comparable<Timer>, IXtumlType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimer.TimerAttributeChangedDeltastatic classTimer.TimerCreatedDeltastatic classTimer.TimerDeletedDelta
-
Constructor Summary
Constructors Constructor Description Timer(int populationId, EventHandle e, int microseconds, boolean recur)Timer(TimerHandle id, int populationId, EventHandle e, long wakeUpTime, int period, boolean recur)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTime(int microseconds)intcompareTo(Timer o)booleanequals(Object o)EventHandlegetEventToGenerate()TimerHandlegetId()intgetPeriod()intgetPopulationId()longgetWakeUpTime()inthashCode()booleanisRecurring()voidreset(long currentTimeMicro)voidsetPeriod(int microseconds)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.ciera.runtime.summit.types.IXtumlType
equality, inequality, oneWhere, serialize
-
-
-
-
Constructor Detail
-
Timer
public Timer(int populationId, EventHandle e, int microseconds, boolean recur)
-
Timer
public Timer(TimerHandle id, int populationId, EventHandle e, long wakeUpTime, int period, boolean recur)
-
-
Method Detail
-
getEventToGenerate
public EventHandle getEventToGenerate()
-
getWakeUpTime
public long getWakeUpTime()
-
addTime
public void addTime(int microseconds)
-
setPeriod
public void setPeriod(int microseconds)
-
getPeriod
public int getPeriod()
-
reset
public void reset(long currentTimeMicro)
-
isRecurring
public boolean isRecurring()
-
getId
public TimerHandle getId()
-
getPopulationId
public int getPopulationId()
-
compareTo
public int compareTo(Timer o)
- Specified by:
compareToin interfaceComparable<Timer>
-
-