public class Timer extends Object implements Comparable<Timer>, IXtumlType
Modifier and Type | Class and Description |
---|---|
static class |
Timer.TimerAttributeChangedDelta |
static class |
Timer.TimerCreatedDelta |
static class |
Timer.TimerDeletedDelta |
Constructor and Description |
---|
Timer(int populationId,
EventHandle e,
int microseconds,
boolean recur) |
Timer(TimerHandle id,
int populationId,
EventHandle e,
long wakeUpTime,
int period,
boolean recur) |
Modifier and Type | Method and 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) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
equality, inequality, oneWhere, serialize
public Timer(int populationId, EventHandle e, int microseconds, boolean recur)
public Timer(TimerHandle id, int populationId, EventHandle e, long wakeUpTime, int period, boolean recur)
public EventHandle getEventToGenerate()
public long getWakeUpTime()
public void addTime(int microseconds)
public void setPeriod(int microseconds)
public int getPeriod()
public void reset(long currentTimeMicro)
public boolean isRecurring()
public TimerHandle getId()
public int getPopulationId()
public int compareTo(Timer o)
compareTo
in interface Comparable<Timer>
Copyright © 2020. All rights reserved.