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 class
Timer.TimerAttributeChangedDelta
static class
Timer.TimerCreatedDelta
static class
Timer.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 void
addTime(int microseconds)
int
compareTo(Timer o)
boolean
equals(Object o)
EventHandle
getEventToGenerate()
TimerHandle
getId()
int
getPeriod()
int
getPopulationId()
long
getWakeUpTime()
int
hashCode()
boolean
isRecurring()
void
reset(long currentTimeMicro)
void
setPeriod(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:
compareTo
in interfaceComparable<Timer>
-
-