Package org.opentrafficsim.core.dsol
Class OtsDevsRealTimeParallelMove
java.lang.Object
org.djutils.event.LocalEventProducer
nl.tudelft.simulation.dsol.simulators.Simulator<T>
nl.tudelft.simulation.dsol.simulators.DEVSSimulator<T>
nl.tudelft.simulation.dsol.simulators.DEVSAnimator<T>
nl.tudelft.simulation.dsol.simulators.DEVSRealTimeAnimator<Duration>
org.opentrafficsim.core.dsol.OtsDevsRealTimeParallelMove
- All Implemented Interfaces:
Serializable,Runnable,Remote,AnimatorInterface,DEVSSimulatorInterface<Duration>,SimulatorInterface<Duration>,org.djutils.event.EventProducer
Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class nl.tudelft.simulation.dsol.simulators.DEVSRealTimeAnimator
DEVSRealTimeAnimator.TimeDouble, DEVSRealTimeAnimator.TimeDoubleUnit, DEVSRealTimeAnimator.TimeFloat, DEVSRealTimeAnimator.TimeFloatUnit, DEVSRealTimeAnimator.TimeLongNested classes/interfaces inherited from class nl.tudelft.simulation.dsol.simulators.Simulator
Simulator.SimulatorWorkerThreadNested classes/interfaces inherited from interface nl.tudelft.simulation.dsol.simulators.AnimatorInterface
AnimatorInterface.AnimationThread -
Field Summary
Fields inherited from class nl.tudelft.simulation.dsol.simulators.DEVSRealTimeAnimator
BACKLOG_EVENT, CHANGE_SPEED_FACTOR_EVENTFields inherited from class nl.tudelft.simulation.dsol.simulators.DEVSSimulator
eventListFields inherited from class nl.tudelft.simulation.dsol.simulators.Simulator
model, replication, replicationState, runflag, runState, runUntilIncluding, runUntilTime, semaphore, simulatorTime, workerFields inherited from interface nl.tudelft.simulation.dsol.simulators.AnimatorInterface
ANIMATION_DELAY_CHANGED_EVENT, DEFAULT_ANIMATION_DELAY, UPDATE_ANIMATION_EVENTFields inherited from interface nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface
EVENTLIST_CHANGED_EVENTFields inherited from interface org.djutils.event.EventProducer
FIRST_POSITION, LAST_POSITIONFields inherited from interface nl.tudelft.simulation.dsol.simulators.SimulatorInterface
START_EVENT, STARTING_EVENT, STOP_EVENT, STOPPING_EVENT, TIME_CHANGED_EVENT -
Constructor Summary
ConstructorsConstructorDescriptionOtsDevsRealTimeParallelMove(int moveThreads, Serializable simulatorId) Create a new OTSRealTimeClock.OtsDevsRealTimeParallelMove(Serializable simulatorId) Create a new OTSRealTimeClock. -
Method Summary
Modifier and TypeMethodDescriptionfinal intvoidrun()final voidsetMoveThreads(int moveThreads) protected final DurationsimulatorTimeForWallClockMillis(double factor) final StringtoString()Methods inherited from class nl.tudelft.simulation.dsol.simulators.DEVSRealTimeAnimator
getSpeedFactor, getUpdateMsec, isAnimation, isCatchup, setAnimation, setCatchup, setSpeedFactor, setSpeedFactor, setUpdateMsecMethods inherited from class nl.tudelft.simulation.dsol.simulators.DEVSAnimator
getAnimationDelay, setAnimationDelay, updateAnimationMethods inherited from class nl.tudelft.simulation.dsol.simulators.DEVSSimulator
cancelEvent, endReplication, getEventList, initialize, isPauseOnError, scheduleEvent, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventRel, scheduleEventRel, scheduleEventRel, scheduleEventRel, setEventList, setPauseOnError, stepImplMethods inherited from class nl.tudelft.simulation.dsol.simulators.Simulator
addScheduledMethodOnInitialize, cleanUp, fireTimedEvent, getErrorLogLevel, getErrorStrategy, getLogger, getModel, getReplication, getReplicationState, getRunState, getSimulatorTime, handleSimulationException, runUpTo, runUpToAndIncluding, setErrorLogLevel, setErrorStrategy, setErrorStrategy, start, startImpl, step, stop, stopImpl, warmupMethods inherited from class org.djutils.event.LocalEventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, getEventListenerMap, getEventTypesWithListeners, getListenerReferences, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface
cancelEvent, getEventList, isPauseOnError, scheduleEvent, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventRel, scheduleEventRel, scheduleEventRel, scheduleEventRel, scheduleEventRel, scheduleEventRel, setEventList, setPauseOnErrorMethods inherited from interface org.djutils.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, getEventListenerMap, getEventTypesWithListeners, getListenerReferences, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListenerMethods inherited from interface nl.tudelft.simulation.dsol.simulators.SimulatorInterface
addScheduledMethodOnInitialize, addScheduledMethodOnInitialize, cleanUp, endReplication, getErrorLogLevel, getErrorStrategy, getLogger, getModel, getReplication, getReplicationState, getRunState, getSimulatorTime, initialize, isInitialized, isStartingOrRunning, isStoppingOrStopped, runUpTo, runUpToAndIncluding, setErrorLogLevel, setErrorStrategy, setErrorStrategy, start, step, stop
-
Constructor Details
-
OtsDevsRealTimeParallelMove
Create a new OTSRealTimeClock.- Parameters:
moveThreads- int; The number of move threads to usesimulatorId- the id of the simulator to use in remote communication
-
OtsDevsRealTimeParallelMove
Create a new OTSRealTimeClock.- Parameters:
simulatorId- the id of the simulator to use in remote communication
-
-
Method Details
-
setMoveThreads
public final void setMoveThreads(int moveThreads) - Parameters:
moveThreads- int; set moveThreads
-
getMoveThreads
public final int getMoveThreads()- Returns:
- moveThreads
-
simulatorTimeForWallClockMillis
- Specified by:
simulatorTimeForWallClockMillisin classDEVSRealTimeAnimator<Duration>
-
toString
-
run
public void run()- Specified by:
runin interfaceRunnable- Overrides:
runin classDEVSRealTimeAnimator<Duration>
-