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