massim.competition2012
Class GraphSimulationXMLObserver

java.lang.Object
  extended by java.util.Observable
      extended by massim.framework.XMLOutputObserver
          extended by massim.competition2012.GraphSimulationXMLObserver
All Implemented Interfaces:
Component, Observer

public class GraphSimulationXMLObserver
extends XMLOutputObserver

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

GraphSimulationXMLObserver

public GraphSimulationXMLObserver()
Method Detail

start

public void start()
Description copied from interface: Component
Tell the component to start activity.


stop

public void stop()
Description copied from interface: Component
Tell the component to cease activity.


notifySimulationConfiguration

public void notifySimulationConfiguration(SimulationConfiguration simconf)
Specified by:
notifySimulationConfiguration in interface Observer
Overrides:
notifySimulationConfiguration in class XMLOutputObserver

notifySimulationState

public void notifySimulationState(SimulationState state)
Specified by:
notifySimulationState in interface Observer
Overrides:
notifySimulationState in class XMLOutputObserver

generateDocument

public void generateDocument(org.w3c.dom.Document doc,
                             SimulationStateImpl simplestate)
Generates the XML representation of the simulation state to send to the observer.

Parameters:
doc - The document to which the XML is generated.
simstate - The current simulation state.


Copyright © 2012. All Rights Reserved.