|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DEVSSimulatorInterface
The DEVS defines the interface of the DEVS simulator. DEVS stands for the Discrete Event System Specification. More information on Discrete Event Simulation can be found in "Theory of Modeling and Simulation" by Bernard Zeigler et. al.
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Field Summary | |
---|---|
static EventType |
EVENTLIST_CHANGED_EVENT
The EVENTLIST_CHANGED_EVENT is fired when the eventList is changed |
Fields inherited from interface nl.tudelft.simulation.dsol.simulators.SimulatorInterface |
---|
END_OF_REPLICATION_EVENT, START_EVENT, START_REPLICATION_EVENT, STEP_EVENT, STOP_EVENT, TIME_CHANGED_EVENT, WARMUP_EVENT |
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
---|
FIRST_POSITION, LAST_POSITION |
Method Summary | |
---|---|
boolean |
cancelEvent(SimEventInterface event)
cancels an event from the event list. |
EventListInterface |
getEventList()
returns the eventlist of the simulator. |
void |
scheduleEvent(double relativeDelay,
Object source,
Object target,
String method,
Object[] args)
schedules a methodCall at a relative duration. |
void |
scheduleEvent(double relativeDelay,
short priority,
Object source,
Object target,
String method,
Object[] args)
schedules a methodCall at a relative duration. |
void |
scheduleEvent(double relativeDelay,
TimeUnitInterface timeUnit,
Object source,
Object target,
String method,
Object[] args)
schedules a methodCall at a relative duration. |
void |
scheduleEvent(double relativeDelay,
TimeUnitInterface timeUnit,
short priority,
Object source,
Object target,
String method,
Object[] args)
schedules a methodCall at a relative duration. |
void |
scheduleEvent(SimEventInterface event)
Method scheduleEvent schedules an event on the eventlist. |
void |
setEventList(EventListInterface eventList)
Method setEventList sets the eventlist. |
Methods inherited from interface nl.tudelft.simulation.dsol.simulators.SimulatorInterface |
---|
getReplication, getSimulatorTime, initialize, isRunning, start, step, stop |
Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
---|
addListener, addListener, addListener, addListener, getEventTypes, removeListener |
Field Detail |
---|
static final EventType EVENTLIST_CHANGED_EVENT
Method Detail |
---|
boolean cancelEvent(SimEventInterface event) throws RemoteException
event
- a simulation event to be canceled.
RemoteException
- on network failure.EventListInterface getEventList() throws RemoteException
RemoteException
- on network failurevoid scheduleEvent(SimEventInterface event) throws RemoteException, SimRuntimeException
event
- a simulation event
RemoteException
- on network failure
SimRuntimeException
- whenever event is scheduled in past.void scheduleEvent(double relativeDelay, short priority, Object source, Object target, String method, Object[] args) throws RemoteException, SimRuntimeException
priority
- the priority compared to other events scheduled at the
same time.source
- the source of the eventtarget
- the targetmethod
- the methodargs
- the arguments.relativeDelay
- the relativeDelay in timeUnits of the simulator.
RemoteException
- on network failure.
SimRuntimeException
- whenever the event is scheduled in the past.void scheduleEvent(double relativeDelay, TimeUnitInterface timeUnit, short priority, Object source, Object target, String method, Object[] args) throws RemoteException, SimRuntimeException
priority
- the priority compared to other events scheduled at the
same time.timeUnit
- the timeUnits of the delaysource
- the source of the eventtarget
- the targetmethod
- the methodargs
- the arguments.relativeDelay
- the relativeDelay in timeUnits of the simulator.
RemoteException
- on network failure.
SimRuntimeException
- whenever the event is scheduled in the past.void scheduleEvent(double relativeDelay, Object source, Object target, String method, Object[] args) throws RemoteException, SimRuntimeException
source
- the source of the eventtarget
- the targetmethod
- the methodargs
- the arguments.relativeDelay
- the relativeDelay in timeUnits of the simulator.
RemoteException
- on network failure.
SimRuntimeException
- whenever the event is scheduled in the past.void scheduleEvent(double relativeDelay, TimeUnitInterface timeUnit, Object source, Object target, String method, Object[] args) throws RemoteException, SimRuntimeException
timeUnit
- the timeUnits of the delaysource
- the source of the eventtarget
- the targetmethod
- the methodargs
- the arguments.relativeDelay
- the relativeDelay in timeUnits of the simulator.
RemoteException
- on network failure.
SimRuntimeException
- whenever the event is scheduled in the past.void setEventList(EventListInterface eventList) throws RemoteException, SimRuntimeException
eventList
- the eventList for the simulator.
RemoteException
- on network failure
SimRuntimeException
- whenever simulator.isRunning()==true
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |