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<org.djunits.value.vdouble.scalar.Duration>
org.opentrafficsim.core.dsol.OtsDevsRealTimeParallelMove
- All Implemented Interfaces:
Serializable
,Runnable
,Remote
,nl.tudelft.simulation.dsol.simulators.AnimatorInterface
,nl.tudelft.simulation.dsol.simulators.DevsSimulatorInterface<org.djunits.value.vdouble.scalar.Duration>
,nl.tudelft.simulation.dsol.simulators.SimulatorInterface<org.djunits.value.vdouble.scalar.Duration>
,org.djutils.event.EventProducer
public class OtsDevsRealTimeParallelMove
extends nl.tudelft.simulation.dsol.simulators.DevsRealTimeAnimator<org.djunits.value.vdouble.scalar.Duration>
Copyright (c) 2013-2024 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
nl.tudelft.simulation.dsol.simulators.DevsRealTimeAnimator.TimeDouble, nl.tudelft.simulation.dsol.simulators.DevsRealTimeAnimator.TimeDoubleUnit, nl.tudelft.simulation.dsol.simulators.DevsRealTimeAnimator.TimeFloat, nl.tudelft.simulation.dsol.simulators.DevsRealTimeAnimator.TimeFloatUnit, nl.tudelft.simulation.dsol.simulators.DevsRealTimeAnimator.TimeLong
Nested classes/interfaces inherited from class nl.tudelft.simulation.dsol.simulators.Simulator
nl.tudelft.simulation.dsol.simulators.Simulator.SimulatorWorkerThread
Nested classes/interfaces inherited from interface nl.tudelft.simulation.dsol.simulators.AnimatorInterface
nl.tudelft.simulation.dsol.simulators.AnimatorInterface.AnimationThread
-
Field Summary
Fields inherited from class nl.tudelft.simulation.dsol.simulators.DevsRealTimeAnimator
BACKLOG_EVENT, CHANGE_SPEED_FACTOR_EVENT
Fields inherited from class nl.tudelft.simulation.dsol.simulators.DevsSimulator
eventList
Fields inherited from class nl.tudelft.simulation.dsol.simulators.Simulator
model, replication, replicationState, runflag, runState, runUntilIncluding, runUntilTime, semaphore, simulatorTime, worker
Fields inherited from interface nl.tudelft.simulation.dsol.simulators.AnimatorInterface
ANIMATION_DELAY_CHANGED_EVENT, DEFAULT_ANIMATION_DELAY, UPDATE_ANIMATION_EVENT
Fields inherited from interface nl.tudelft.simulation.dsol.simulators.DevsSimulatorInterface
EVENTLIST_CHANGED_EVENT
Fields inherited from interface org.djutils.event.EventProducer
FIRST_POSITION, LAST_POSITION
Fields inherited from interface nl.tudelft.simulation.dsol.simulators.SimulatorInterface
START_EVENT, STARTING_EVENT, STOP_EVENT, STOPPING_EVENT, TIME_CHANGED_EVENT
-
Constructor Summary
ConstructorDescriptionOtsDevsRealTimeParallelMove
(int moveThreads, Serializable simulatorId) Create a new OTSRealTimeClock.OtsDevsRealTimeParallelMove
(Serializable simulatorId) Create a new OTSRealTimeClock. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
void
run()
final void
setMoveThreads
(int moveThreads) protected final org.djunits.value.vdouble.scalar.Duration
simulatorTimeForWallClockMillis
(double factor) final String
toString()
Methods inherited from class nl.tudelft.simulation.dsol.simulators.DevsRealTimeAnimator
getSpeedFactor, getUpdateMsec, isAnimation, isCatchup, setAnimation, setCatchup, setSpeedFactor, setSpeedFactor, setUpdateMsec
Methods inherited from class nl.tudelft.simulation.dsol.simulators.DevsAnimator
getAnimationDelay, setAnimationDelay, updateAnimation
Methods 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, stepImpl
Methods 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, warmup
Methods 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, removeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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, setPauseOnError
Methods 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, removeListener
Methods 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
protected final org.djunits.value.vdouble.scalar.Duration simulatorTimeForWallClockMillis(double factor) - Specified by:
simulatorTimeForWallClockMillis
in classnl.tudelft.simulation.dsol.simulators.DevsRealTimeAnimator<org.djunits.value.vdouble.scalar.Duration>
-
toString
-
run
public void run()
-