|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScenarioConnector
A ScenarioConnector is similar to a SimulatioManager
, but it can connect to the
simulation instance without knowing the reference. In a distributed environment, this usually
happens via JMS communication.
Method Summary | |
---|---|
void |
clearListeners()
Removes all listeners. |
void |
disconnect()
Disconnects from the simulation engine. |
SimulationID[] |
getInstances()
Gets the simulation ids of the simulations instances currently running for the model. |
ModelState |
getModelState(SimulationID uid)
Returns the current state of a simulation. |
long |
getTime(SimulationID id)
Gets the current time step of a simulation. |
void |
pause()
Pauses the model run by pausing all simulation instances. |
void |
registerSimulationListener(ScenarioListener listener)
Registers a listener. |
void |
resume()
Resumes a model run by resuming all simulation instances. |
void |
shutdown()
Shuts down a model run and all its simulations. |
void |
unregisterSimulationListener(ScenarioListener listener)
Removes a single listener. |
Method Detail |
---|
void disconnect() throws GSimException
GSimException
long getTime(SimulationID id) throws GSimException
id
- simulation id
GSimException
void clearListeners() throws GSimException
GSimException
SimulationID[] getInstances() throws GSimException
GSimException
ModelState getModelState(SimulationID uid) throws GSimException
uid
- id of the simulation
GSimException
void pause() throws GSimException
GSimException
void registerSimulationListener(ScenarioListener listener) throws GSimException
listener
- the listener
GSimException
void resume() throws GSimException
GSimException
void shutdown() throws GSimException
GSimException
void unregisterSimulationListener(ScenarioListener listener) throws GSimException
listener
- the listener
GSimException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |