massim.competition2011
Class GraphSimulationVisualizationObserver

java.lang.Object
  extended by massim.competition2011.GraphSimulationVisualizationObserver
All Implemented Interfaces:
Component, Observer

public class GraphSimulationVisualizationObserver
extends java.lang.Object
implements Observer

This VisualizationObserver takes care about the visualization (svg-files).


Field Summary
protected  int laststep
           
protected  GraphPolicy output
           
protected  java.lang.String outputFolder
           
static java.lang.String simulationName
           
 java.lang.String tournamentName
           
 
Constructor Summary
GraphSimulationVisualizationObserver()
           
 
Method Summary
protected  void drawBackground(SimulationWorldState s_state)
           
protected  void drawSimulation(int step, SimulationWorldState s_state, AgentState[] agentstates)
           
 void notifySimulationConfiguration(SimulationConfiguration simconf)
           
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

simulationName

public static java.lang.String simulationName

tournamentName

public java.lang.String tournamentName

output

protected GraphPolicy output

outputFolder

protected java.lang.String outputFolder

laststep

protected int laststep
Constructor Detail

GraphSimulationVisualizationObserver

public GraphSimulationVisualizationObserver()
Method Detail

notifySimulationStart

public void notifySimulationStart()
Specified by:
notifySimulationStart in interface Observer

notifySimulationConfiguration

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

notifySimulationEnd

public void notifySimulationEnd()
Specified by:
notifySimulationEnd in interface Observer

notifySimulationState

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

drawBackground

protected void drawBackground(SimulationWorldState s_state)

drawSimulation

protected void drawSimulation(int step,
                              SimulationWorldState s_state,
                              AgentState[] agentstates)

start

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

Specified by:
start in interface Component

stop

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

Specified by:
stop in interface Component


Copyright © 2011. All Rights Reserved.