Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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/18 23:58] (current)
iulia.popescu2012
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
     * schelet     * schelet
       * update refs t3, t4 - 26 oct. 2025       * update refs t3, t4 - 26 oct. 2025
Line 1229: Line 1230:
       * 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ă:
poo-ca-cd/teme/2025/8e211bfe-f6eb-467c-9e54-f8e6df4c1535/tema-1.1763058443.txt.gz · Last modified: 2025/11/13 20:27 by ioana.tudorache2507
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0