|
||||||||||
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.competition2011.GraphSimulation
public class GraphSimulation
This is the main class for the GraphSimulation (2011 Mars Scenario).
Constructor Summary | |
---|---|
GraphSimulation()
|
Method Summary | |
---|---|
void |
configureSimulation(SimulationConfiguration c)
This method can be used by simulation managers to configure a simulation. |
java.lang.String |
finalizeSimpleSimulation()
This method is supposed to make final actions before the simulation is shut down. |
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. |
void |
preSimulationStep()
This method is supposed to make necessary changes to the world that must occur before agents act in that step. |
void |
runAgents()
This method is supposed to let agents act. |
void |
runFinalAgents()
This method prepares and sends the final perceptions to the agents when the simulation is finished |
void |
runInitAgents()
This method prepares and sends the initial perceptions to the agents for starting the simulation |
void |
simulationStep()
|
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 GraphSimulation()
Method Detail |
---|
public void configureSimulation(SimulationConfiguration c)
DefaultSimulation
configureSimulation
in interface Simulation
configureSimulation
in class AbstractSimulation
c
- configuration messagepublic boolean isFinished()
Simulation
public WorldState getSimpleSimulationState()
AbstractSimulation
getSimpleSimulationState
in class AbstractSimulation
public void initializeSimpleSimulation()
AbstractSimulation
initializeSimpleSimulation
in class AbstractSimulation
public void preSimulationStep()
AbstractSimulation
preSimulationStep
in class AbstractSimulation
public void postSimulationStep()
AbstractSimulation
postSimulationStep
in class AbstractSimulation
public void runAgents()
AbstractSimulation
runAgents
in class AbstractSimulation
public void simulationStep()
simulationStep
in class AbstractSimulation
public void runInitAgents()
runInitAgents
in class AbstractSimulation
public void runFinalAgents()
runFinalAgents
in class AbstractSimulation
public java.lang.String finalizeSimpleSimulation()
AbstractSimulation
finalizeSimpleSimulation
in class AbstractSimulation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |