public class GraphSimulationXMLObserver extends XMLOutputObserver
Constructor and Description |
---|
GraphSimulationXMLObserver() |
Modifier and Type | Method and Description |
---|---|
void |
generateDocument(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.
|
getDocument, notifySimulationEnd, notifySimulationStart, resetDocument, setDocument
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
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(Document doc, SimulationStateImpl simplestate)
doc
- The document to which the XML is generated.simstate
- The current simulation state.Copyright © 2013. All Rights Reserved.