public interface OTSDEVSSimulatorInterface extends DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>, OTSSimulatorInterface
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
DEVSSimulatorInterface.CalendarDouble, DEVSSimulatorInterface.CalendarFloat, DEVSSimulatorInterface.CalendarLong, DEVSSimulatorInterface.TimeDouble, DEVSSimulatorInterface.TimeDoubleUnit, DEVSSimulatorInterface.TimeFloat, DEVSSimulatorInterface.TimeFloatUnit, DEVSSimulatorInterface.TimeLong, DEVSSimulatorInterface.TimeLongUnitEVENTLIST_CHANGED_EVENTEND_OF_REPLICATION_EVENT, START_EVENT, START_REPLICATION_EVENT, STEP_EVENT, STOP_EVENT, TIME_CHANGED_EVENT, WARMUP_EVENT| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelEvent(SimEventInterface<OTSSimTimeDouble> event) |
EventListInterface<OTSSimTimeDouble> |
getEventList() |
Replication<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble> |
getReplication() |
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.
|
SimEventInterface<OTSSimTimeDouble> |
scheduleEvent(SimEventInterface<OTSSimTimeDouble> event) |
SimEventInterface<OTSSimTimeDouble> |
scheduleEventAbs(OTSSimTimeDouble absoluteTime,
Object source,
Object target,
String method,
Object[] args) |
SimEventInterface<OTSSimTimeDouble> |
scheduleEventAbs(OTSSimTimeDouble absoluteTime,
short priority,
Object source,
Object target,
String method,
Object[] args) |
SimEventInterface<OTSSimTimeDouble> |
scheduleEventAbs(org.djunits.value.vdouble.scalar.Time absoluteTime,
Object source,
Object target,
String method,
Object[] args)
schedules a methodCall at an absolute time.
|
SimEventInterface<OTSSimTimeDouble> |
scheduleEventAbs(org.djunits.value.vdouble.scalar.Time absoluteTime,
short priority,
Object source,
Object target,
String method,
Object[] args)
schedules a methodCall at an absolute time.
|
SimEventInterface<OTSSimTimeDouble> |
scheduleEventNow(Object source,
Object target,
String method,
Object[] args) |
SimEventInterface<OTSSimTimeDouble> |
scheduleEventNow(short priority,
Object source,
Object target,
String method,
Object[] args) |
SimEventInterface<OTSSimTimeDouble> |
scheduleEventRel(org.djunits.value.vdouble.scalar.Duration relativeDelay,
Object source,
Object target,
String method,
Object[] args)
schedules a methodCall at a relative duration.
|
SimEventInterface<OTSSimTimeDouble> |
scheduleEventRel(org.djunits.value.vdouble.scalar.Duration relativeDelay,
short priority,
Object source,
Object target,
String method,
Object[] args)
schedules a methodCall at a relative duration.
|
void |
setEventList(EventListInterface<OTSSimTimeDouble> eventList) |
isPauseOnError, runUpToAndIncluding, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventNow, scheduleEventNow, scheduleEventRel, scheduleEventRel, setPauseOnErrorgetSimulatorTime, initialize, isRunning, start, step, stopstart, step, stopboolean cancelEvent(SimEventInterface<OTSSimTimeDouble> event)
cancelEvent in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>EventListInterface<OTSSimTimeDouble> getEventList()
getEventList in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>SimEventInterface<OTSSimTimeDouble> scheduleEvent(SimEventInterface<OTSSimTimeDouble> event) throws SimRuntimeException
scheduleEvent in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>SimRuntimeExceptionSimEventInterface<OTSSimTimeDouble> scheduleEventRel(org.djunits.value.vdouble.scalar.Duration relativeDelay, short priority, Object source, Object target, String method, Object[] args) throws SimRuntimeException
scheduleEventRel in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>relativeDelay - the relativeDelay in timeUnits of the simulator.priority - the priority compared to other events scheduled at the same time.source - the source of the eventtarget - the targetmethod - the methodargs - the arguments.SimRuntimeException - whenever the event is scheduled in the past.SimEventInterface<OTSSimTimeDouble> scheduleEventRel(org.djunits.value.vdouble.scalar.Duration relativeDelay, Object source, Object target, String method, Object[] args) throws SimRuntimeException
scheduleEventRel in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>relativeDelay - the relativeDelay in timeUnits of the simulator.source - the source of the eventtarget - the targetmethod - the methodargs - the arguments.SimRuntimeException - whenever the event is scheduled in the past.SimEventInterface<OTSSimTimeDouble> scheduleEventAbs(OTSSimTimeDouble absoluteTime, short priority, Object source, Object target, String method, Object[] args) throws SimRuntimeException
scheduleEventAbs in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>SimRuntimeExceptionSimEventInterface<OTSSimTimeDouble> scheduleEventAbs(org.djunits.value.vdouble.scalar.Time absoluteTime, Object source, Object target, String method, Object[] args) throws SimRuntimeException
scheduleEventAbs in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>absoluteTime - the exact time to schedule the method on the simulator.source - the source of the eventtarget - the targetmethod - the methodargs - the arguments.SimRuntimeException - whenever the event is scheduled in the past.SimEventInterface<OTSSimTimeDouble> scheduleEventAbs(org.djunits.value.vdouble.scalar.Time absoluteTime, short priority, Object source, Object target, String method, Object[] args) throws SimRuntimeException
scheduleEventAbs in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>absoluteTime - the exact time to schedule the method on the simulator.priority - the priority compared to other events scheduled at the same time.source - the source of the eventtarget - the targetmethod - the methodargs - the arguments.SimRuntimeException - whenever the event is scheduled in the past.SimEventInterface<OTSSimTimeDouble> scheduleEventAbs(OTSSimTimeDouble absoluteTime, Object source, Object target, String method, Object[] args) throws SimRuntimeException
scheduleEventAbs in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>SimRuntimeExceptionSimEventInterface<OTSSimTimeDouble> scheduleEventNow(short priority, Object source, Object target, String method, Object[] args) throws SimRuntimeException
scheduleEventNow in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>SimRuntimeExceptionSimEventInterface<OTSSimTimeDouble> scheduleEventNow(Object source, Object target, String method, Object[] args) throws SimRuntimeException
scheduleEventNow in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>SimRuntimeExceptionvoid setEventList(EventListInterface<OTSSimTimeDouble> eventList) throws SimRuntimeException
setEventList in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>SimRuntimeExceptionReplication<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble> getReplication()
getReplication in interface SimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>void runUpTo(org.djunits.value.vdouble.scalar.Time when)
throws SimRuntimeException
runUpTo in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>when - the absolute time till when we want to run the simulationSimRuntimeException - whenever starting fails. Possible occasions include starting a started simulatorCopyright © 2014–2017 Delft University of Technology. All rights reserved.