Package org.opentrafficsim.core.dsol
Class OTSDEVSRTParallelMove
- java.lang.Object
-
- org.djutils.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>
,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 class nl.tudelft.simulation.dsol.simulators.Simulator
Simulator.SimulatorWorkerThread
-
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.DEVSSimulator
eventList
-
Fields inherited from class nl.tudelft.simulation.dsol.simulators.Simulator
replication, replicationState, runState, runUntilIncluding, runUntilTime, semaphore, simulatorTime, worker
-
Fields inherited from class org.djutils.event.EventProducer
eventProducerImpl
-
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.EventProducerInterface
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
Constructors Constructor Description OTSDEVSRTParallelMove(int moveThreads, java.io.Serializable simulatorId)
Create a new OTSRealTimeClock.OTSDEVSRTParallelMove(java.io.Serializable simulatorId)
Create a new OTSRealTimeClock.
-
Method Summary
All Methods Instance Methods Concrete Methods 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
cancelEvent, endReplication, getEventList, initialize, isPauseOnError, scheduleEvent, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, 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
cleanUp, fireTimedEvent, getLogger, getReplication, getReplicationState, getRunState, getSimTime, getSimulatorTime, getSourceId, runUpTo, runUpToAndIncluding, start, startImpl, step, stop, stopImpl, warmup
-
Methods inherited from class org.djutils.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, 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, scheduleEventAbs, scheduleEventAbs, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventRel, scheduleEventRel, scheduleEventRel, scheduleEventRel, setEventList, setPauseOnError
-
Methods inherited from interface org.djutils.event.EventProducerInterface
addListener, addListener, addListener, addListener, getEventTypesWithListeners, hasListeners, numberOfListeners, removeListener
-
Methods inherited from interface nl.tudelft.simulation.dsol.simulators.SimulatorInterface
getLogger, getReplication, getReplicationState, getRunState, getSimTime, getSimulatorTime, getSourceId, initialize, isInitialized, isStartingOrRunning, isStoppingOrStopped, runUpTo, runUpToAndIncluding, start, step, stop
-
-
-
-
Constructor Detail
-
OTSDEVSRTParallelMove
public OTSDEVSRTParallelMove(int moveThreads, java.io.Serializable simulatorId)
Create a new OTSRealTimeClock.- Parameters:
moveThreads
- int; The number of move threads to usesimulatorId
- the id of the simulator to use in remote communication
-
OTSDEVSRTParallelMove
public OTSDEVSRTParallelMove(java.io.Serializable simulatorId)
Create a new OTSRealTimeClock.- Parameters:
simulatorId
- the id of the simulator to use in remote communication
-
-
Method Detail
-
setMoveThreads
public final void setMoveThreads(int moveThreads)
- Parameters:
moveThreads
- int; set moveThreads
-
getMoveThreads
public final int getMoveThreads()
- Returns:
- moveThreads
-
simulatorTimeForWallClockMillis
protected final Duration simulatorTimeForWallClockMillis(double factor)
- 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>
-
-