public class OTSLoggingAnimator extends OTSAnimator
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2018-10-30 14:03:57 +0100 (Tue, 30 Oct 2018) $, @version $Revision: 4727 $, by $Author: pknoppers $,
initial version 11 mei 2015
nl.tudelft.simulation.dsol.simulators.DEVSRealTimeClock.CalendarDouble, nl.tudelft.simulation.dsol.simulators.DEVSRealTimeClock.CalendarFloat, nl.tudelft.simulation.dsol.simulators.DEVSRealTimeClock.CalendarLong, nl.tudelft.simulation.dsol.simulators.DEVSRealTimeClock.TimeDouble, nl.tudelft.simulation.dsol.simulators.DEVSRealTimeClock.TimeDoubleUnit, nl.tudelft.simulation.dsol.simulators.DEVSRealTimeClock.TimeFloat, nl.tudelft.simulation.dsol.simulators.DEVSRealTimeClock.TimeFloatUnit, nl.tudelft.simulation.dsol.simulators.DEVSRealTimeClock.TimeLongnl.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.TimeLongBACKLOG_EVENT, CHANGE_SPEED_FACTOR_EVENTreplication, running, semaphore, simulatorTime, workerEVENTLIST_CHANGED_EVENTEND_REPLICATION_EVENT, START_EVENT, START_REPLICATION_EVENT, STEP_EVENT, STOP_EVENT, TIME_CHANGED_EVENT, WARMUP_EVENT| Constructor and Description |
|---|
OTSLoggingAnimator(String path)
Construct an OTSAnimator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(Time startTime,
Duration warmupPeriod,
Duration runLength,
OTSModelInterface model)
Initialize a simulation engine without animation; the easy way.
|
void |
initialize(Time startTime,
Duration warmupPeriod,
Duration runLength,
OTSModelInterface model,
int replicationnr)
Initialize a simulation engine without animation and prescribed replication number; the easy way.
|
void |
initialize(Time startTime,
Duration warmupPeriod,
Duration runLength,
OTSModelInterface model,
Map<String,nl.tudelft.simulation.jstats.streams.StreamInterface> streams)
Initialize a simulation engine without animation; the easy way.
|
void |
run() |
String |
toString() |
getReplication, scheduleEventsimulatorTimeForWallClockMillisgetSpeedFactor, getUpdateMsec, isAnimation, isCatchup, setAnimation, setCatchup, setSpeedFactor, setSpeedFactor, setUpdateMsecgetAnimationDelay, setAnimationDelay, updateAnimationautoPauseSimulator, 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, stepcleanUp, getSimTime, getSimulatorTime, isRunning, start, start, step, stop, 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, isPauseOnError, runUpTo, runUpToAndIncluding, scheduleEvent, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventNow, scheduleEventRel, scheduleEventRel, scheduleEventRel, scheduleEventRel, setEventList, setPauseOnErrorendReplication, getSimTime, getSimulatorTime, initialize, isRunning, start, start, step, step, stop, stoppublic OTSLoggingAnimator(String path)
path - path for loggingpublic void initialize(Time startTime, Duration warmupPeriod, Duration runLength, OTSModelInterface model) throws nl.tudelft.simulation.dsol.SimRuntimeException, NamingException
initialize in interface OTSSimulatorInterfaceinitialize in class OTSAnimatorstartTime - Time; the start time of the simulationwarmupPeriod - Duration; the warm up period of the simulation (use new Duration(0, SECOND) if you don't know what
this is)runLength - Duration; the duration of the simulationmodel - OTSModelInterface; the simulation to executenl.tudelft.simulation.dsol.SimRuntimeException - when e.g., warmupPeriod is larger than runLengthNamingException - when the context for the replication cannot be createdpublic void initialize(Time startTime, Duration warmupPeriod, Duration runLength, OTSModelInterface model, Map<String,nl.tudelft.simulation.jstats.streams.StreamInterface> streams) throws nl.tudelft.simulation.dsol.SimRuntimeException, NamingException
initialize in class OTSAnimatorstartTime - Time; the start time of the simulationwarmupPeriod - Duration; the warm up period of the simulation (use new Duration(0, SECOND) if you don't know what
this is)runLength - Duration; the duration of the simulationmodel - OTSModelInterface; the simulation to executestreams - Map<String, StreamInterface>; streamsnl.tudelft.simulation.dsol.SimRuntimeException - when e.g., warmupPeriod is larger than runLengthNamingException - when the context for the replication cannot be createdpublic void initialize(Time startTime, Duration warmupPeriod, Duration runLength, OTSModelInterface model, int replicationnr) throws nl.tudelft.simulation.dsol.SimRuntimeException, NamingException
initialize in interface OTSSimulatorInterfaceinitialize in class OTSAnimatorstartTime - Time; the start time of the simulationwarmupPeriod - Duration; the warm up period of the simulation (use new Duration(0, SECOND) if you don't know what
this is)runLength - Duration; the duration of the simulationmodel - OTSModelInterface; the simulation to executereplicationnr - int; the replication numbernl.tudelft.simulation.dsol.SimRuntimeException - when e.g., warmupPeriod is larger than runLengthNamingException - when context for the animation cannot be createdpublic String toString()
toString in class OTSAnimatorCopyright © 2014–2019 Delft University of Technology. All rights reserved.