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.TimeLongNested 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_EVENTFields inherited from class nl.tudelft.simulation.dsol.simulators.Simulator
replication, running, 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 nl.tudelft.simulation.event.EventProducerInterface
FIRST_POSITION, LAST_POSITIONFields 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 intgetMoveThreads()voidrun()voidsetMoveThreads(int moveThreads)protected DurationsimulatorTimeForWallClockMillis(double factor)java.lang.StringtoString()Methods inherited from class nl.tudelft.simulation.dsol.simulators.DEVSRealTimeClock
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
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, stepMethods inherited from class nl.tudelft.simulation.dsol.simulators.Simulator
cleanUp, getReplication, getSimTime, getSimulatorTime, isRunning, start, start, step, stop, stopMethods 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, 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, runUpTo, runUpToAndIncluding, scheduleEvent, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventRel, scheduleEventRel, scheduleEventRel, scheduleEventRel, setEventList, setPauseOnErrorMethods inherited from interface nl.tudelft.simulation.event.EventProducerInterface
addListener, addListener, addListener, addListener, removeListenerMethods 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:
 simulatorTimeForWallClockMillisin classDEVSRealTimeClock<Time,Duration,SimTimeDoubleUnit>
 - 
toString
public final java.lang.String toString()- Overrides:
 toStringin classjava.lang.Object
 - 
run
public void run()- Specified by:
 runin interfacejava.lang.Runnable- Overrides:
 runin classDEVSRealTimeClock<Time,Duration,SimTimeDoubleUnit>
 
 -