|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmassim.framework.DefaultSimulation
massim.framework.simulation.AbstractSimulation
massim.framework.simulation.ParallelizedRandomOrderSimulation
massim.gridsimulations.AbstractGridSimulation
massim.competition2006.GridSimulation
public class GridSimulation
This class is the main class of the GridSimulation. It provides methods to handle the initialization, configuration, presimulationstep and postsimulationstep.
Constructor Summary | |
---|---|
GridSimulation()
|
Method Summary | |
---|---|
void |
configureSimulation(SimulationConfiguration c)
This method can be used by simulation managers to configure a simulation. |
WorldState |
getSimpleSimulationState()
This method is supposed to return the state of the world, excluding agents. |
void |
initializeSimpleSimulation()
This method is supposed to initialize a simulation. |
boolean |
isFinished()
This method returns true iff the simulation is in a final state. |
void |
postSimulationStep()
This method is supposed to make necessary changes to the world that must occur after agent act in have acted in that step. |
Methods inherited from class massim.gridsimulations.AbstractGridSimulation |
---|
finalizeSimpleSimulation, preSimulationStep, runAgents, simulationStep, updateAgentPosition |
Methods inherited from class massim.framework.simulation.ParallelizedRandomOrderSimulation |
---|
runFinalAgents, runInitAgents |
Methods inherited from class massim.framework.simulation.AbstractSimulation |
---|
endSimulation, getAgents, getSimulationState, getSteps, setSteps, startSimulation, stepSimulation |
Methods inherited from class massim.framework.DefaultSimulation |
---|
concurrentCreateAgent, concurrentGetAction, createAgent, getAction, getAgentManager, getController, removeAgent, removeAllAgents, setAgentManager, setController, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GridSimulation()
Method Detail |
---|
public void configureSimulation(SimulationConfiguration c)
DefaultSimulation
configureSimulation
in interface Simulation
configureSimulation
in class AbstractSimulation
c
- configuration messagepublic WorldState getSimpleSimulationState()
AbstractSimulation
getSimpleSimulationState
in class AbstractSimulation
public void initializeSimpleSimulation()
AbstractSimulation
initializeSimpleSimulation
in class AbstractSimulation
public boolean isFinished()
Simulation
public void postSimulationStep()
AbstractSimulation
postSimulationStep
in class AbstractSimulation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |