|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimulatorInterface
The SimulatorInterface defines the behavior of the simulators in the DSOL framework. The simulator is defined as the computational object capable of executing the model. The simulator is therefore an object which must can be stopped, paused, started, reset, etc.
(c) copyright 2002-2004 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 |
END_OF_REPLICATION_EVENT
END_OF_REPLICATION_EVENT is fired when a replication is finished |
static EventType |
START_EVENT
START_EVENT is fired when the simulator is started |
static EventType |
START_REPLICATION_EVENT
START_EVENT is fired when the simulator is started |
static EventType |
STEP_EVENT
STEP_EVENT is fired when the simulator is stepped |
static EventType |
STOP_EVENT
STOP_EVENT is fired when the simulator is stopped |
static EventType |
TIME_CHANGED_EVENT
TIME_CHANGED_EVENT is fired when the simulatorTime is updated |
static EventType |
WARMUP_EVENT
WARMUP_EVENT is fired when the initialize method is invoked |
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
---|
FIRST_POSITION, LAST_POSITION |
Method Summary | |
---|---|
Replication |
getReplication()
returns the currently executed replication. |
double |
getSimulatorTime()
returns the actual simulator time. |
void |
initialize(Replication replication)
initializes the simulator with a specified replication. |
boolean |
isRunning()
is the simulator running. |
void |
start()
starts the simulator |
void |
step()
steps the simulator. |
void |
stop()
stops the simulator. |
Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
---|
addListener, addListener, addListener, addListener, getEventTypes, removeListener |
Field Detail |
---|
static final EventType END_OF_REPLICATION_EVENT
static final EventType START_REPLICATION_EVENT
static final EventType START_EVENT
static final EventType STEP_EVENT
static final EventType STOP_EVENT
static final EventType TIME_CHANGED_EVENT
static final EventType WARMUP_EVENT
Method Detail |
---|
double getSimulatorTime() throws RemoteException
RemoteException
- on network failure.Replication getReplication() throws RemoteException
RemoteException
- on network failurevoid initialize(Replication replication) throws RemoteException, SimRuntimeException
replication
- the replication
RemoteException
- on network failure
SimRuntimeException
- on simulator failure (simulator is running)boolean isRunning() throws RemoteException
RemoteException
- on network failurevoid start() throws RemoteException, SimRuntimeException
RemoteException
- on network failure
SimRuntimeException
- whenever starting fails. Possible occasions
include starting a started simulatorvoid step() throws RemoteException, SimRuntimeException
RemoteException
- on network failure
SimRuntimeException
- whenever stepping fails. Possible occasions
include stepping a stopped simulatorvoid stop() throws RemoteException, SimRuntimeException
RemoteException
- on network failure
SimRuntimeException
- whenever stopping fails. Possible occasions
include stopping a stopped simulator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |