public interface OTSDEVSSimulatorInterface extends DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit>,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.TimeUnit>,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_EVENTFIRST_POSITION, LAST_POSITION| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelEvent(SimEventInterface<OTSSimTimeDouble> event) |
EventListInterface<OTSSimTimeDouble> |
getEventList() |
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 |
scheduleEvent(SimEventInterface<OTSSimTimeDouble> event) |
void |
scheduleEventAbs(OTSSimTimeDouble absoluteTime,
Object source,
Object target,
String method,
Object[] args) |
void |
scheduleEventAbs(OTSSimTimeDouble absoluteTime,
short priority,
Object source,
Object target,
String method,
Object[] args) |
void |
scheduleEventAbs(org.djunits.value.vdouble.scalar.Time absoluteTime,
Object source,
Object target,
String method,
Object[] args)
schedules a methodCall at an absolute time.
|
void |
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.
|
void |
scheduleEventNow(Object source,
Object target,
String method,
Object[] args) |
void |
scheduleEventNow(short priority,
Object source,
Object target,
String method,
Object[] args) |
void |
scheduleEventRel(org.djunits.value.vdouble.scalar.Duration relativeDelay,
Object source,
Object target,
String method,
Object[] args)
schedules a methodCall at a relative duration.
|
void |
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, runUpTo, runUpToAndIncluding, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventAbs, scheduleEventNow, scheduleEventNow, scheduleEventRel, scheduleEventRel, scheduleEventRel, scheduleEventRel, setPauseOnErrorgetSimulatorTime, initialize, isRunning, start, step, stopgetReplication, start, step, stopaddListener, addListener, addListener, addListener, removeListenerboolean cancelEvent(SimEventInterface<OTSSimTimeDouble> event)
cancelEvent in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit>,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.TimeUnit>,OTSSimTimeDouble>EventListInterface<OTSSimTimeDouble> getEventList()
getEventList in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit>,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.TimeUnit>,OTSSimTimeDouble>void scheduleEvent(SimEventInterface<OTSSimTimeDouble> event) throws SimRuntimeException
scheduleEvent in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit>,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.TimeUnit>,OTSSimTimeDouble>SimRuntimeExceptionvoid scheduleEventRel(org.djunits.value.vdouble.scalar.Duration relativeDelay,
short priority,
Object source,
Object target,
String method,
Object[] args)
throws SimRuntimeException
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.void scheduleEventRel(org.djunits.value.vdouble.scalar.Duration relativeDelay,
Object source,
Object target,
String method,
Object[] args)
throws SimRuntimeException
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.void scheduleEventAbs(OTSSimTimeDouble absoluteTime, short priority, Object source, Object target, String method, Object[] args) throws SimRuntimeException
scheduleEventAbs in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit>,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.TimeUnit>,OTSSimTimeDouble>SimRuntimeExceptionvoid scheduleEventAbs(org.djunits.value.vdouble.scalar.Time absoluteTime,
Object source,
Object target,
String method,
Object[] args)
throws SimRuntimeException
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.void scheduleEventAbs(org.djunits.value.vdouble.scalar.Time absoluteTime,
short priority,
Object source,
Object target,
String method,
Object[] args)
throws SimRuntimeException
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.void scheduleEventAbs(OTSSimTimeDouble absoluteTime, Object source, Object target, String method, Object[] args) throws SimRuntimeException
scheduleEventAbs in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit>,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.TimeUnit>,OTSSimTimeDouble>SimRuntimeExceptionvoid scheduleEventNow(short priority,
Object source,
Object target,
String method,
Object[] args)
throws SimRuntimeException
scheduleEventNow in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit>,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.TimeUnit>,OTSSimTimeDouble>SimRuntimeExceptionvoid scheduleEventNow(Object source, Object target, String method, Object[] args) throws SimRuntimeException
scheduleEventNow in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit>,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.TimeUnit>,OTSSimTimeDouble>SimRuntimeExceptionvoid setEventList(EventListInterface<OTSSimTimeDouble> eventList) throws SimRuntimeException
setEventList in interface DEVSSimulatorInterface<org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.TimeUnit>,org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.TimeUnit>,OTSSimTimeDouble>SimRuntimeExceptionvoid runUpTo(org.djunits.value.vdouble.scalar.Time when)
throws SimRuntimeException
when - the absolute time till when we want to run the simulationSimRuntimeException - whenever starting fails. Possible occasions include starting a started simulatorCopyright © 2014–2016 Delft University of Technology. All rights reserved.