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

firstmessage · Changes

Page history
joao.severo created page: api/firstmessage authored Sep 19, 2018 by João Vitor Bernardi Severo's avatar João Vitor Bernardi Severo
Hide whitespace changes
Inline Side-by-side
api/firstmessage.md 0 → 100644
View page @ 6315179b
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.
```JSON
{
"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