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
  • Api
  • firstmessage

Last edited by Gabriel Henrique Paul Nov 16, 2018
Page history

firstmessage

|Home|Quick Start|Sprints|Requirements|Architecture|Server Config|API|GIT|Simulation|Agents| |:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|

The first message to the agents after the simulation started can be divided into two big groups. The first one will be repeated for every agent without changes and the second one will be edited for each agent.

{
    "firstPercepctions" :{
        "mapCoordinates" : {
            "coordUpperX" : -30.085000, 
            "coordUpperY" : -51.245556,
            "coordLowerX" : -30.080397,
            "coordLowerY" : -51.234005,
            },
        "cdmCoordinates" : {
            "coordX" : -30.0277, 
            "coordY" : -51.2287
            },
        "floodCoordinates" : {
            "coordUpperX" : -30.085000, 
            "coordUpperY" : -51.245556,
            "coordLowerX" : -30.080397,
            "coordLowerY" : -51.234005,
        },
        "simulationSteps" : 70,
        "jobs" : [
            {
                "__id" : 123430910,
                "coord" : {
                    "coordX" : -30.0277, 
                    "coordY" : -51.2287
                },
                "status" : "",
                "requiredSkills" : []
            }
            ...
        ],
        "personalPerceptions" : {}
    }
}

The filed taht can be changed are explained in the Agent file.

The static fields are described below:

  • mapCoordinates : The limits of the map

    • coordUpperX/Y : The upper bounds of the map
    • coordLowerX/Y : The lower bounds of the map
  • cdmCoordinates : Location of the charging station

  • floodCoordinates : Location of the flood

  • simulationSteps : How many steps the simulation has

  • jobs : A list of all the jobs already defined

    • id : Identifier of the job
    • coord : Location of the job
    • status : Posteriorly changed to true if the job was successfully done, false if the job was not successfull
    • requiredSkills : List of the skills needed to do a job
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