public class OTSDEVSSimulator extends nl.tudelft.simulation.dsol.simulators.DEVSSimulator<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble> implements OTSDEVSSimulatorInterface
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
nl.tudelft.simulation.dsol.simulators.DEVSSimulator.CalendarDouble, nl.tudelft.simulation.dsol.simulators.DEVSSimulator.CalendarFloat, nl.tudelft.simulation.dsol.simulators.DEVSSimulator.CalendarLong, nl.tudelft.simulation.dsol.simulators.DEVSSimulator.TimeDouble, nl.tudelft.simulation.dsol.simulators.DEVSSimulator.TimeDoubleUnit, nl.tudelft.simulation.dsol.simulators.DEVSSimulator.TimeFloat, nl.tudelft.simulation.dsol.simulators.DEVSSimulator.TimeFloatUnit, nl.tudelft.simulation.dsol.simulators.DEVSSimulator.TimeLong, nl.tudelft.simulation.dsol.simulators.DEVSSimulator.TimeLongUnitnl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.CalendarDouble, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.CalendarFloat, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.CalendarLong, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDouble, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeFloat, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeFloatUnit, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeLong, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeLongUnitreplication, running, semaphore, simulatorTime, workerEVENTLIST_CHANGED_EVENT| Constructor and Description |
|---|
OTSDEVSSimulator() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(nl.tudelft.simulation.dsol.experiment.Replication<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble> initReplication,
nl.tudelft.simulation.dsol.experiment.ReplicationMode replicationMode) |
void |
runUpTo(org.djunits.value.vdouble.scalar.Time when)
Runs the simulator up to a certain time; events at that time will not yet be executed.
|
void |
start(boolean fireStartEvent) |
String |
toString() |
autoPauseSimulator, cancelEvent, getEventList, isPauseOnError, run, runUpToAndIncluding, scheduleEvent, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventRel, scheduleEventRel, scheduleEventRel, scheduleEventRel, setEventList, setPauseOnError, step, stopcleanUp, getReplication, getSimulatorTime, isRunning, start, step, stopaddListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancelEvent, getEventList, getReplication, scheduleEvent, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventNow, scheduleEventNow, scheduleEventRel, scheduleEventRel, setEventListisPauseOnError, runUpToAndIncluding, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventNow, scheduleEventNow, scheduleEventRel, scheduleEventRel, setPauseOnErrorgetSimulatorTime, isRunning, start, step, stoppublic final void initialize(nl.tudelft.simulation.dsol.experiment.Replication<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble> initReplication, nl.tudelft.simulation.dsol.experiment.ReplicationMode replicationMode) throws nl.tudelft.simulation.dsol.SimRuntimeException
initialize in interface nl.tudelft.simulation.dsol.simulators.SimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>initialize in interface OTSSimulatorInterfaceinitialize in class nl.tudelft.simulation.dsol.simulators.DEVSSimulator<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>nl.tudelft.simulation.dsol.SimRuntimeExceptionpublic final void runUpTo(org.djunits.value.vdouble.scalar.Time when)
throws nl.tudelft.simulation.dsol.SimRuntimeException
runUpTo in interface nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>runUpTo in interface OTSDEVSSimulatorInterfacerunUpTo in class nl.tudelft.simulation.dsol.simulators.DEVSSimulator<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>when - the absolute time till when we want to run the simulationnl.tudelft.simulation.dsol.SimRuntimeException - whenever starting fails. Possible occasions include starting a started simulatorpublic void start(boolean fireStartEvent)
throws nl.tudelft.simulation.dsol.SimRuntimeException
start in interface nl.tudelft.simulation.dsol.simulators.SimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>start in class nl.tudelft.simulation.dsol.simulators.Simulator<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>nl.tudelft.simulation.dsol.SimRuntimeExceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.