public class SystemClock extends ContinuousClock
DEFAULT_DELTA, timersEVENT_TYPE_NEW_DELTA, EVENT_TYPE_NEW_DILATION, EVENT_TYPE_NEXT_TIMEPOINT, EVENT_TYPE_RESET, EVENT_TYPE_STARTED, EVENT_TYPE_STOPPED, EVENT_TYPE_TIMER_ADDED, EVENT_TYPE_TIMER_REMOVED, STATE_RUNNING, STATE_SUSPENDED, TYPE_CONTINUOUS, TYPE_EVENT_DRIVEN, TYPE_SYSTEM, TYPE_TIME_DRIVEN| Constructor and Description |
|---|
SystemClock(IClock oldclock,
IThreadPool threadpool)
Create a new clock.
|
SystemClock(String name,
long delta,
IThreadPool threadpool)
Create a new clock.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDilation()
The dilation is always 1.0.
|
long |
getTime()
The current time is always the same as the system time.
|
String |
getType()
Get the type of the clock.
|
void |
stop()
Stop the clock.
|
addChangeListener, addTimer, dispose, removeTimer, reset, setDilation, startaddTickTimer, createTickTimer, createTimer, getDelta, getName, getNextTimer, getStarttime, getState, getTick, getTickTimers, getTimers, removeChangeListener, removeTickTimer, setDelta, shutdownequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTickTimer, createTickTimer, createTimer, getDelta, getName, getNextTimer, getStarttime, getState, getTick, getTickTimers, getTimers, removeChangeListener, removeTickTimer, setDeltapublic SystemClock(IClock oldclock, IThreadPool threadpool)
oldclock - The old clock.public SystemClock(String name, long delta, IThreadPool threadpool)
public String getType()
getType in interface IClockgetType in class ContinuousClockpublic long getTime()
getTime in interface IClockgetTime in class ContinuousClockpublic double getDilation()
getDilation in interface IContinuousClockgetDilation in class ContinuousClockpublic void stop()
stop in interface IClockstop in class ContinuousClockCopyright © 2012. All Rights Reserved.