This shows you the differences between two versions of the page.
|
poo-ca-cd:teme:2025:8e211bfe-f6eb-467c-9e54-f8e6df4c1535:tema-1 [2025/11/13 20:27] ioana.tudorache2507 [Animal] |
poo-ca-cd:teme:2025:8e211bfe-f6eb-467c-9e54-f8e6df4c1535:tema-1 [2025/11/28 21:05] (current) iulia.popescu2012 modificare input changeWeatherConditions |
||
|---|---|---|---|
| Line 20: | Line 20: | ||
| * adăugat explicații Algoritm hrănire animal - 10 nov. 2025 | * adăugat explicații Algoritm hrănire animal - 10 nov. 2025 | ||
| * adăugat explicații Algoritm hrănire animal - 13 nov. 2025 | * adăugat explicații Algoritm hrănire animal - 13 nov. 2025 | ||
| + | * adăugat explicații desertStorm pentru printEnvConditions - 18 nov. 2025 | ||
| + | * update specificare sol improveEnvironment - 27 nov. 2025 | ||
| * schelet | * schelet | ||
| * update refs t3, t4 - 26 oct. 2025 | * update refs t3, t4 - 26 oct. 2025 | ||
| Line 744: | Line 746: | ||
| "command": "changeWeatherConditions", | "command": "changeWeatherConditions", | ||
| "type": "desertStorm", | "type": "desertStorm", | ||
| - | "windSpeed": 25.0, | + | "desertStorm": true, |
| "timestamp": 10 | "timestamp": 10 | ||
| }, | }, | ||
| Line 961: | Line 963: | ||
| * <code bash>"The scanned object is ${type_of_entity}"</code> | * <code bash>"The scanned object is ${type_of_entity}"</code> | ||
| * <code bash>"ERROR: Object not found. Cannot perform action"</code> | * <code bash>"ERROR: Object not found. Cannot perform action"</code> | ||
| - | * <code bash>"ERROR: Not enough battery left. Cannot perform action"</code> | + | * <code bash>"ERROR: Not enough energy to perform action"</code> |
| * <code bash>"ERROR: Robot still charging. Cannot perform action"</code> | * <code bash>"ERROR: Robot still charging. Cannot perform action"</code> | ||
| * <code bash>"ERROR: Simulation not started. Cannot perform action"</code> | * <code bash>"ERROR: Simulation not started. Cannot perform action"</code> | ||
| Line 1091: | Line 1093: | ||
| * ''%%+0.3 oxigen%%'' pentru aer față de cantitatea curentă | * ''%%+0.3 oxigen%%'' pentru aer față de cantitatea curentă | ||
| * **fertilizeSoil** | * **fertilizeSoil** | ||
| - | * ''%%+0.3 organicMatter%%'' pentru soil | + | * ''%%+0.3 organicMatter%%'' pentru sol |
| * **increaseHumidity** | * **increaseHumidity** | ||
| * ''%%+0.2 humidity%%'' la aer | * ''%%+0.2 humidity%%'' la aer | ||
| * **increaseMoisture** | * **increaseMoisture** | ||
| - | * ''%%+0.2 waterRetention%%'' pentru apă | + | * ''%%+0.2 waterRetention%%'' pentru sol |
| <note important> | <note important> | ||
| Line 1229: | Line 1231: | ||
| * componenta aerului | * componenta aerului | ||
| + | <note important> | ||
| + | Se dorește monitorizarea furtunilor de nisip, astfel încât pentru tipul de aer **DesertAir**, va apărea în structura componentei aerului și **câmpul cu valori booleene "desertStorm"**, afectat de succesul comenzii **changeWeatherConditions**. În general, valoarea acestui câmp va fi **false**, dar în cazul declanșării furtunilor de nisip, pentru 2 iterații valoarea devine **true**. | ||
| + | |||
| + | Exemplu: | ||
| + | <spoiler Click pentru exemplu apariție desertStorm> | ||
| + | <code json> | ||
| + | { | ||
| + | "command" : "printEnvConditions", | ||
| + | "output" : { | ||
| + | ... | ||
| + | "air" : { | ||
| + | "type" : "DesertAir", | ||
| + | "name" : "Dry Desert Air", | ||
| + | "mass" : 900000.0, | ||
| + | "humidity" : 60.0, | ||
| + | "temperature" : 15.0, | ||
| + | "oxygenLevel" : 20.0, | ||
| + | "airQuality" : 3.0, | ||
| + | "desertStorm" : true | ||
| + | } | ||
| + | }, | ||
| + | "timestamp" : 22 | ||
| + | }, | ||
| + | </code> | ||
| + | </spoiler> | ||
| + | </note> | ||
| Mesaje posibile pentru această comandă: | Mesaje posibile pentru această comandă: | ||