|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Simulation
This interface defines some methods that must be provided by any simulation to be used in the MASSim framework.
Method Summary | |
---|---|
void |
configureSimulation(SimulationConfiguration config)
This method will be automatically called as soon as the simulation is being configured. |
java.lang.String |
endSimulation()
This method will be automatically called once when the simulation has been started and it is to end. |
AgentManager |
getAgentManager()
Retrieve the AgentManager that will be used for agent creation by this simulation. |
SimulationState |
getSimulationState()
This method will retrieve the whole simulation state. |
boolean |
isFinished()
This method returns true iff the simulation is in a final state. |
void |
setAgentManager(AgentManager agentmanager)
|
void |
startSimulation()
This method will be automatically called when the simulation starts. |
void |
stepSimulation()
This method will be automatically called when the simulation is supposed to do a simulation step. |
Methods inherited from interface massim.framework.Component |
---|
start, stop |
Method Detail |
---|
void startSimulation()
void stepSimulation()
java.lang.String endSimulation()
boolean isFinished()
void configureSimulation(SimulationConfiguration config)
config
- configuration messageSimulationState getSimulationState()
AgentManager getAgentManager()
void setAgentManager(AgentManager agentmanager)
agentmanager
- The agentmanager to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |