public abstract class SimulationVisualizationObserver extends DefaultObserver implements ServerSimulationContextReceiver
Modifier and Type | Field and Description |
---|---|
protected int |
htaccess |
protected int |
laststep |
protected GridPolicy |
output |
protected String |
outputFolder |
static String |
simulationName |
String |
tournamentName |
Constructor and Description |
---|
SimulationVisualizationObserver() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
drawBackground(SimulationWorldState state) |
protected abstract void |
drawSimulation(int step,
SimulationWorldState state,
AgentState[] agentstates) |
void |
notifySimulationConfiguration(SimulationConfiguration simconf) |
void |
notifySimulationEnd() |
void |
notifySimulationStart() |
void |
notifySimulationState(SimulationState state) |
void |
setSimulationContext(ServerSimulationContext context) |
void |
start()
Tell the component to start activity.
|
void |
stop()
Tell the component to cease activity.
|
public static String simulationName
public String tournamentName
protected GridPolicy output
protected String outputFolder
protected int htaccess
protected int laststep
public void notifySimulationStart()
notifySimulationStart
in interface Observer
notifySimulationStart
in class DefaultObserver
public void notifySimulationConfiguration(SimulationConfiguration simconf)
notifySimulationConfiguration
in interface Observer
notifySimulationConfiguration
in class DefaultObserver
public void notifySimulationEnd()
notifySimulationEnd
in interface Observer
notifySimulationEnd
in class DefaultObserver
public void notifySimulationState(SimulationState state)
notifySimulationState
in interface Observer
notifySimulationState
in class DefaultObserver
public void start()
Component
start
in interface Component
start
in class DefaultObserver
public void stop()
Component
stop
in interface Component
stop
in class DefaultObserver
public void setSimulationContext(ServerSimulationContext context)
setSimulationContext
in interface ServerSimulationContextReceiver
protected abstract void drawSimulation(int step, SimulationWorldState state, AgentState[] agentstates)
protected abstract void drawBackground(SimulationWorldState state)
Copyright © 2013. All Rights Reserved.