public class OTSDEVSRTParallelMove extends DEVSRealTimeClock<Time,Duration,SimTimeDoubleUnit>
Copyright (c) 2013-2018 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
AnimatorInterface.AnimationThread
BACKLOG_EVENT, CHANGE_SPEED_FACTOR_EVENT
eventList
replication, running, semaphore, simulatorTime, worker
listeners
EVENTLIST_CHANGED_EVENT
END_OF_REPLICATION_EVENT, START_EVENT, START_REPLICATION_EVENT, STEP_EVENT, STOP_EVENT, TIME_CHANGED_EVENT, WARMUP_EVENT
FIRST_POSITION, LAST_POSITION
ANIMATION_DELAY_CHANGED_EVENT, DEFAULT_ANIMATION_DELAY, UPDATE_ANIMATION_EVENT
Constructor and Description |
---|
OTSDEVSRTParallelMove()
Create a new OTSRealTimeClock.
|
OTSDEVSRTParallelMove(int moveThreads)
Create a new OTSRealTimeClock.
|
Modifier and Type | Method and Description |
---|---|
int |
getMoveThreads() |
protected Duration |
relativeMillis(double factor) |
void |
run() |
void |
setMoveThreads(int moveThreads) |
String |
toString() |
getSpeedFactor, getUpdateMsec, isCatchup, setCatchup, setSpeedFactor, setSpeedFactor, setUpdateMsec
getAnimationDelay, setAnimationDelay, updateAnimation
autoPauseSimulator, cancelEvent, getEventList, initialize, isPauseOnError, runUpTo, runUpToAndIncluding, scheduleEvent, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventRel, scheduleEventRel, scheduleEventRel, scheduleEventRel, setEventList, setPauseOnError, step, stop
cleanUp, getReplication, getSimTime, getSimulatorTime, isRunning, start, start, step, stop
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cancelEvent, getEventList, isPauseOnError, runUpTo, runUpToAndIncluding, scheduleEvent, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventRel, scheduleEventRel, scheduleEventRel, scheduleEventRel, setEventList, setPauseOnError
getReplication, getSimTime, getSimulatorTime, initialize, isRunning, start, start, step, step, stop, stop
addListener, addListener, addListener, addListener, removeListener
public OTSDEVSRTParallelMove(int moveThreads)
moveThreads
- The number of move threads to usepublic OTSDEVSRTParallelMove()
public final void setMoveThreads(int moveThreads)
moveThreads
- set moveThreadspublic final int getMoveThreads()
protected final Duration relativeMillis(double factor)
relativeMillis
in class DEVSRealTimeClock<Time,Duration,SimTimeDoubleUnit>
public void run()
run
in interface Runnable
run
in class DEVSRealTimeClock<Time,Duration,SimTimeDoubleUnit>
Copyright © 2014–2018 Delft University of Technology. All rights reserved.