Package org.opentrafficsim.core.dsol
Class OTSDEVSRTParallelMove
java.lang.Object
nl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.dsol.simulators.Simulator<A,R,T>
nl.tudelft.simulation.dsol.simulators.DEVSSimulator<A,R,T>
nl.tudelft.simulation.dsol.simulators.DEVSAnimator<A,R,T>
nl.tudelft.simulation.dsol.simulators.DEVSRealTimeClock<Time,Duration,SimTimeDoubleUnit>
org.opentrafficsim.core.dsol.OTSDEVSRTParallelMove
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Runnable
,java.rmi.Remote
,AnimatorInterface
,DEVSSimulatorInterface<Time,Duration,SimTimeDoubleUnit>
,SimulatorInterface<Time,Duration,SimTimeDoubleUnit>
,nl.tudelft.simulation.event.EventProducerInterface
public class OTSDEVSRTParallelMove extends DEVSRealTimeClock<Time,Duration,SimTimeDoubleUnit>
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Version:
- $Revision: 2386 $, $LastChangedDate: 2016-10-16 14:55:54 +0200 (Sun, 16 Oct 2016) $, by $Author: averbraeck $,
initial version Aug 15, 2014
- Author:
- Alexander Verbraeck
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class nl.tudelft.simulation.dsol.simulators.DEVSRealTimeClock
DEVSRealTimeClock.CalendarDouble, DEVSRealTimeClock.CalendarFloat, DEVSRealTimeClock.CalendarLong, DEVSRealTimeClock.TimeDouble, DEVSRealTimeClock.TimeDoubleUnit, DEVSRealTimeClock.TimeFloat, DEVSRealTimeClock.TimeFloatUnit, DEVSRealTimeClock.TimeLong
Nested classes/interfaces inherited from interface nl.tudelft.simulation.dsol.simulators.AnimatorInterface
AnimatorInterface.AnimationThread
-
Field Summary
Fields inherited from class nl.tudelft.simulation.dsol.simulators.DEVSRealTimeClock
BACKLOG_EVENT, CHANGE_SPEED_FACTOR_EVENT
Fields inherited from class nl.tudelft.simulation.dsol.simulators.Simulator
replication, running, 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 nl.tudelft.simulation.event.EventProducerInterface
FIRST_POSITION, LAST_POSITION
Fields inherited from interface nl.tudelft.simulation.dsol.simulators.SimulatorInterface
END_REPLICATION_EVENT, START_EVENT, START_REPLICATION_EVENT, STEP_EVENT, STOP_EVENT, TIME_CHANGED_EVENT, WARMUP_EVENT
-
Constructor Summary
Constructors Constructor Description OTSDEVSRTParallelMove()
Create a new OTSRealTimeClock.OTSDEVSRTParallelMove(int moveThreads)
Create a new OTSRealTimeClock. -
Method Summary
Modifier and Type Method Description int
getMoveThreads()
void
run()
void
setMoveThreads(int moveThreads)
protected Duration
simulatorTimeForWallClockMillis(double factor)
java.lang.String
toString()
Methods inherited from class nl.tudelft.simulation.dsol.simulators.DEVSRealTimeClock
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
autoPauseSimulator, cancelEvent, endReplication, 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
Methods inherited from class nl.tudelft.simulation.dsol.simulators.Simulator
cleanUp, getReplication, getSimTime, getSimulatorTime, isRunning, start, start, step, stop, stop
Methods inherited from class nl.tudelft.simulation.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, 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, runUpTo, runUpToAndIncluding, scheduleEvent, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventRel, scheduleEventRel, scheduleEventRel, scheduleEventRel, setEventList, setPauseOnError
Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface
addListener, addListener, addListener, addListener, removeListener
Methods inherited from interface nl.tudelft.simulation.dsol.simulators.SimulatorInterface
endReplication, getReplication, getSimTime, getSimulatorTime, initialize, isRunning, start, start, step, step, stop, stop
-
Constructor Details
-
OTSDEVSRTParallelMove
public OTSDEVSRTParallelMove(int moveThreads)Create a new OTSRealTimeClock.- Parameters:
moveThreads
- int; The number of move threads to use
-
OTSDEVSRTParallelMove
public OTSDEVSRTParallelMove()Create a new OTSRealTimeClock.
-
-
Method Details
-
setMoveThreads
public final void setMoveThreads(int moveThreads)- Parameters:
moveThreads
- int; set moveThreads
-
getMoveThreads
public final int getMoveThreads()- Returns:
- moveThreads
-
simulatorTimeForWallClockMillis
- Specified by:
simulatorTimeForWallClockMillis
in classDEVSRealTimeClock<Time,Duration,SimTimeDoubleUnit>
-
toString
public final java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
run
public void run()- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classDEVSRealTimeClock<Time,Duration,SimTimeDoubleUnit>
-