|
|
## Simulation
|
|
|
|
|
|
***
|
|
|
|
|
|
#### initializeSimulation()
|
|
|
|
|
|
###### Description:
|
|
|
|
|
|
Called to start a simulation. If not already present in the configuration file, creates a new Generator for random events. Generates random events and creates the state of the simulation's world and the initial perceptions for each of the Agents recieved. Returns a list with all initial perceptions.
|
|
|
|
|
|
###### Parameters:
|
|
|
|
|
|
* number of steps for the simulation
|
|
|
* configuration file for the simulation
|
|
|
* list of agents participating in the simulation
|
|
|
|
|
|
***
|
|
|
|
|
|
#### preStep()
|
|
|
|
|
|
###### Description:
|
|
|
|
|
|
Called before the execution of each step. Activates previously generated random events starting before the next step. Creates perceptions for each of the Agents in the simulation. Returns a list with all perceptions.
|
|
|
|
|
|
###### Parameters:
|
|
|
|
|
|
* number of next step in the simulation
|
|
|
|
|
|
#### step()
|
|
|
|
|
|
###### Description:
|
|
|
|
|
|
Called for the execution of each step. Executes every action in random order. Deactivates previously generated random events ending on this step.
|
|
|
|
|
|
###### Parameters:
|
|
|
|
|
|
* number of current step in the simulation
|
|
|
* map of (agents, actions) of current step in the simulation |
|
|
\ No newline at end of file |