... | ... | @@ -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
|
|
|
|
|
|
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 |
|
|
failed_wrong_param | Parameters were given.
|
|
|
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
|
|
|
|
... | ... | @@ -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 | 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 |