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
  • Agents
  • actions

actions · Changes

Page history
Update actions authored Sep 21, 2018 by Marlon Pereira da Silva's avatar Marlon Pereira da Silva
Show whitespace changes
Inline Side-by-side
agents/actions.md
View page @ db5e9d01
...@@ -32,6 +32,56 @@ failed | An unforeseen error has occurred. ...@@ -32,6 +32,56 @@ failed | An unforeseen error has occurred.
*** ***
### photograph
Action responsible for taking a photo, if there's enough virtual_storage available on the agent. This action has no parameters.
Failure Code | Reason
--- | ---
failed_wrong_param | Parameters were given.
failed_capacity | The agent doesn't have enough virtual_storage.
failed_location | The agent is not in a location with a photography event.
failed | An unforeseen error has occurred.
***
### collect_water
Action responsible for collecting a sample of water, if there's enough physical_storage available on the agent. This action has no parameters.
Failure Code | Reason
--- | ---
failed_wrong_param | Parameters were given.
failed_capacity | The agent doesn't have enough physical_storage.
failed_location | The agent is not in a location with a water sample.
failed | An unforeseen error has occurred.
### analyze_photo
Action responsible for analyzing every photo currently held by the agent. In case of success, the photos will be removed from the agent's virtual_storage. This action has no parameters.
Failure Code | Reason
--- | ---
failed_wrong_param | Parameters were given.
failed_item_amount | The agents has no photos to analyze.
failed | An unforeseen error has occurred.
### rescue_victim
Action responsible for rescuing a victim, identified by it's ID, if there's enough physical_storage available on the agent. This action can be used with 1 parameter.
No | Parameter | Meaning
--- | --- | ---
0 | ID | ID of the victim to rescue.
Failure Code | Reason
--- | ---
failed_wrong_param | More or less than 1 parameter was given.
failed_unknown_item | No victim by the given ID is known.
failed_capacity | The agent doesn't have enough physical_storage.
failed_location | The agent is not in the same location as the victim.
failed | An unforeseen error has occurred.
### deliver_physical ### deliver_physical
Action responsible for delivering physical assets currently held by the agent, such as victims and water samples, to the CDM. This action can be used with 1 or 2 parameters, as the amount of the asset to be delivered is optional, and defaults to the maximum available. Action responsible for delivering physical assets currently held by the agent, such as victims and water samples, to the CDM. This action can be used with 1 or 2 parameters, as the amount of the asset to be delivered is optional, and defaults to the maximum available.
...@@ -85,43 +135,9 @@ Failure Code | Reason ...@@ -85,43 +135,9 @@ Failure Code | Reason
failed_wrong_param | Parameters were given. failed_wrong_param | Parameters were given.
failed | An unforeseen error has occurred. failed | An unforeseen error has occurred.
### rescue_victim
Action responsible for rescuing a victim, identified by it's ID, if there's enough physical_storage available on the agent. This action can be used with 1 parameter.
No | Parameter | Meaning
--- | --- | ---
0 | ID | ID of the victim to rescue.
Failure Code | Reason
--- | ---
failed_wrong_param | More or less than 1 parameter was given.
failed_unknown_item | No victim by the given ID is known.
failed_capacity | The agent doesn't have enough physical_storage.
failed_location | The agent is not in the same location as the victim.
failed | An unforeseen error has occurred.
### collect_water
Action responsible for collecting a sample of water, if there's enough physical_storage available on the agent. This action has no parameters.
Failure Code | Reason
--- | ---
failed_wrong_param | Parameters were given.
failed_capacity | The agent doesn't have enough physical_storage.
failed_location | The agent is not in a location with a water sample.
failed | An unforeseen error has occurred.
### photograph
Action responsible for taking a photo, if there's enough virtual_storage available on the agent. This action has no parameters.
Failure Code | Reason
--- | ---
failed_wrong_param | Parameters were given.
failed_capacity | The agent doesn't have enough virtual_storage.
failed_location | The agent is not in a location with a photography event.
failed | An unforeseen error has occurred.
### search_social_asset ### search_social_asset
...@@ -142,12 +158,3 @@ Failure Code | Reason ...@@ -142,12 +158,3 @@ Failure Code | Reason
failed_wrong_param | More than 3, 2, or 0 parameters were given or the given parameters were not valid double values. failed_wrong_param | More than 3, 2, or 0 parameters were given or the given parameters were not valid double values.
failed | An unforeseen error has occurred. failed | An unforeseen error has occurred.
### analyze_photo
Action responsible for analyzing every photo currently held by the agent. In case of success, the photos will be removed from the agent's virtual_storage. This action has no parameters.
Failure Code | Reason
--- | ---
failed_wrong_param | Parameters were given.
failed_item_amount | The agents has no photos to analyze.
failed | An unforeseen error has occurred.
\ No newline at end of file
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