public class SimulationTickClock extends AbstractClock implements ISimulationClock
DEFAULT_DELTA, timers
EVENT_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 |
---|
SimulationTickClock(IClock oldclock)
Create a new clock.
|
SimulationTickClock(String name,
long starttime,
long delta)
Create a new clock.
|
Modifier and Type | Method and Description |
---|---|
boolean |
advanceEvent()
Advance one event.
|
String |
getType()
Get the clock type.
|
addChangeListener, addTickTimer, addTimer, createTickTimer, createTimer, dispose, getDelta, getName, getNextTimer, getStarttime, getState, getTick, getTickTimers, getTime, getTimers, removeChangeListener, removeTickTimer, removeTimer, reset, setDelta, shutdown, start, stop
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChangeListener, addTickTimer, addTimer, createTickTimer, createTimer, dispose, getDelta, getName, getNextTimer, getStarttime, getState, getTick, getTickTimers, getTime, getTimers, removeChangeListener, removeTickTimer, removeTimer, reset, setDelta, start, stop
public SimulationTickClock(String name, long starttime, long delta)
name
- The name.starttime
- The start time.delta
- The time delta for time advance.public SimulationTickClock(IClock oldclock)
oldclock
- The old clock.public boolean advanceEvent()
advanceEvent
in interface ISimulationClock
Copyright © 2012. All Rights Reserved.