|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
massim.framework.XMLOutputObserver
massim.competition2011.GraphSimulationXMLObserver
public class GraphSimulationXMLObserver
This RMIXMLDocumentObserver provides the simulation statistics for the webserver and the servermonitor.
Constructor Summary | |
---|---|
GraphSimulationXMLObserver()
|
Method Summary | |
---|---|
void |
generateDocument(org.w3c.dom.Document doc,
SimulationStateImpl simplestate)
Generates the XML representation of the simulation state to send to the observer. |
void |
notifySimulationConfiguration(SimulationConfiguration simconf)
|
void |
notifySimulationState(SimulationState state)
|
void |
start()
Tell the component to start activity. |
void |
stop()
Tell the component to cease activity. |
Methods inherited from class massim.framework.XMLOutputObserver |
---|
getDocument, notifySimulationEnd, notifySimulationStart, resetDocument, setDocument |
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 GraphSimulationXMLObserver()
Method Detail |
---|
public void start()
Component
public void stop()
Component
public void notifySimulationConfiguration(SimulationConfiguration simconf)
notifySimulationConfiguration
in interface Observer
notifySimulationConfiguration
in class XMLOutputObserver
public void notifySimulationState(SimulationState state)
notifySimulationState
in interface Observer
notifySimulationState
in class XMLOutputObserver
public void generateDocument(org.w3c.dom.Document doc, SimulationStateImpl simplestate)
doc
- The document to which the XML is generated.simstate
- The current simulation state.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |