massim.competition2011
Class GraphSimulationXMLStatisticsObserver

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

public class GraphSimulationXMLStatisticsObserver
extends XMLOutputObserver

This class provides all information needed for the tomcat results page. Note: If you change the format of the document sent to the tomcat you have to change the webapp WebClientTournamentServlet as well Also, the webapp CreateResultsPage and the ResultsPage are affected. So, be careful!


Field Summary
static java.lang.String outputFolder
           
static java.lang.String simulationName
           
 
Constructor Summary
GraphSimulationXMLStatisticsObserver()
           
 
Method Summary
 void notifySimulationEnd()
           
 void notifySimulationStart()
           
 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, notifySimulationConfiguration, 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
 

Field Detail

simulationName

public static java.lang.String simulationName

outputFolder

public static java.lang.String outputFolder
Constructor Detail

GraphSimulationXMLStatisticsObserver

public GraphSimulationXMLStatisticsObserver()
Method Detail

notifySimulationStart

public void notifySimulationStart()
Specified by:
notifySimulationStart in interface Observer
Overrides:
notifySimulationStart in class XMLOutputObserver

notifySimulationEnd

public void notifySimulationEnd()
Specified by:
notifySimulationEnd in interface Observer
Overrides:
notifySimulationEnd in class XMLOutputObserver

notifySimulationState

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

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.



Copyright © 2012. All Rights Reserved.