|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
edu.ntnu.ecosim.management.SimulationManager
public class SimulationManager
The Class SimulationManager. This is a controll class which binds the environment layer and the communication interface layer. The simulation manager is responsible for setting up the simulation, and for sending temporary- and final results.
Constructor Summary | |
---|---|
SimulationManager()
The Constructor. |
Method Summary | |
---|---|
void |
reset()
Method to reset the simulation. |
void |
run()
|
void |
sendErrorMessage(java.lang.String msg)
Send error message to the application using the simulator |
void |
sendFinalResultsXML()
Send final results as a XML document. |
void |
sendInfoMessage(java.lang.String info)
Send information message as XML document |
void |
sendTemporaryResultsXML(java.lang.String time)
Send temporary results as XML document. |
void |
setupEnvironment(org.w3c.dom.Document setup)
Setup the environment. |
void |
startSimulation()
Start the simulation. |
void |
stopSimulation()
Stop the simulation. |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimulationManager()
Method Detail |
---|
public void reset()
public void run()
run
in interface java.lang.Runnable
public void sendErrorMessage(java.lang.String msg)
msg
- the message to sendpublic void sendFinalResultsXML()
public void sendTemporaryResultsXML(java.lang.String time)
time
- the current time of the simulationpublic void sendInfoMessage(java.lang.String info)
info
- the information to sendpublic void setupEnvironment(org.w3c.dom.Document setup)
setup
- the document containing information about the simulationpublic void startSimulation()
public void stopSimulation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |