public class OTSDEVSRealTimeClock extends DEVSRealTimeClock<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble> implements OTSDEVSSimulatorInterface, OTSAnimatorInterface
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
DEVSRealTimeClock.CalendarDouble, DEVSRealTimeClock.CalendarFloat, DEVSRealTimeClock.CalendarLong, DEVSRealTimeClock.TimeDouble, DEVSRealTimeClock.TimeDoubleUnit, DEVSRealTimeClock.TimeFloat, DEVSRealTimeClock.TimeFloatUnit, DEVSRealTimeClock.TimeLong, DEVSRealTimeClock.TimeLongUnitDEVSSimulatorInterface.CalendarDouble, DEVSSimulatorInterface.CalendarFloat, DEVSSimulatorInterface.CalendarLong, DEVSSimulatorInterface.TimeDouble, DEVSSimulatorInterface.TimeDoubleUnit, DEVSSimulatorInterface.TimeFloat, DEVSSimulatorInterface.TimeFloatUnit, DEVSSimulatorInterface.TimeLong, DEVSSimulatorInterface.TimeLongUnitAnimatorInterface.AnimationThreadBACKLOG_EVENT, CHANGE_SPEED_FACTOR_EVENTeventListreplication, running, semaphore, simulatorTime, workerEVENTLIST_CHANGED_EVENTEND_OF_REPLICATION_EVENT, START_EVENT, START_REPLICATION_EVENT, STEP_EVENT, STOP_EVENT, TIME_CHANGED_EVENT, WARMUP_EVENTFIRST_POSITION, LAST_POSITIONANIMATION_DELAY_CHANGED_EVENT, DEFAULT_ANIMATION_DELAY, UPDATE_ANIMATION_EVENT| Constructor and Description |
|---|
OTSDEVSRealTimeClock()
Create a new OTSRealTimeClock.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(Replication<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble> initReplication,
ReplicationMode replicationMode) |
protected org.djunits.value.vdouble.scalar.Duration |
relativeMillis(double factor) |
void |
runUpTo(org.djunits.value.vdouble.scalar.Time when)
Runs the simulator up to a certain time; events at that time will not yet be executed.
|
String |
toString() |
getSpeedFactor, getUpdateMsec, isCatchup, run, setCatchup, setSpeedFactor, setSpeedFactor, setUpdateMsecgetAnimationDelay, setAnimationDelay, updateAnimationautoPauseSimulator, cancelEvent, getEventList, isPauseOnError, runUpToAndIncluding, scheduleEvent, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventRel, scheduleEventRel, scheduleEventRel, scheduleEventRel, setEventList, setPauseOnError, step, stopcleanUp, getReplication, getSimulatorTime, isRunning, start, start, step, stopaddListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancelEvent, getEventList, getReplication, scheduleEvent, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventNow, scheduleEventNow, scheduleEventRel, scheduleEventRel, setEventListisPauseOnError, runUpToAndIncluding, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventNow, scheduleEventNow, scheduleEventRel, scheduleEventRel, setPauseOnErrorgetSimulatorTime, isRunning, start, step, stopstart, step, stopaddListener, addListener, addListener, addListener, removeListenergetAnimationDelay, setAnimationDelay, updateAnimationpublic OTSDEVSRealTimeClock()
public final void initialize(Replication<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble> initReplication, ReplicationMode replicationMode) throws SimRuntimeException
initialize in interface SimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>initialize in interface OTSSimulatorInterfaceinitialize in class DEVSSimulator<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>SimRuntimeExceptionpublic final void runUpTo(org.djunits.value.vdouble.scalar.Time when)
throws SimRuntimeException
runUpTo in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>runUpTo in interface OTSDEVSSimulatorInterfacerunUpTo in class DEVSSimulator<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>when - the absolute time till when we want to run the simulationSimRuntimeException - whenever starting fails. Possible occasions include starting a started simulatorprotected final org.djunits.value.vdouble.scalar.Duration relativeMillis(double factor)
relativeMillis in class DEVSRealTimeClock<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>Copyright © 2014–2017 Delft University of Technology. All rights reserved.