Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D Desastres
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Desastres
  • Desastres
  • Wiki
  • Simulation
  • definition

Last edited by Gabriel Henrique Paul Nov 19, 2018
Page history
This is an old version of this page. You can view the most recent version or browse the history.

definition

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
Clone repository
  • API
  • QuickStart
  • agents
  • agents
    • actions
    • agent
  • api
    • firstconnection
    • firstmessage
    • how it works
    • stepsmessages
  • Home
  • notes
  • requirements
  • setting enviroment
  • simulation
  • simulation
    • corearchitecture
View All Pages