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/10/04 01:47]
ioana.tudorache2507 [Desfășurarea unei simulări]
poo-ca-cd:teme:2025:8e211bfe-f6eb-467c-9e54-f8e6df4c1535:tema-1 [2025/10/04 03:42] (current)
ioana.tudorache2507 [printMap]
Line 152: Line 152:
  
   * ''​%%"​Simulation has ended."​%%''​   * ''​%%"​Simulation has ended."​%%''​
-  * ''​%%"​ERROR:​ Simulation ​already ​started. Cannot perform action"​%%''​+  * ''​%%"​ERROR:​ Simulation ​not started. Cannot perform action"​%%''​
  
 == Input == == Input ==
Line 197: Line 197:
   * ''​%%"​The weather has changed."​%%''​   * ''​%%"​The weather has changed."​%%''​
   * ''​%%"​ERROR:​ The weather change does not affect the environment. Cannot perform action"​%%''​   * ''​%%"​ERROR:​ The weather change does not affect the environment. Cannot perform action"​%%''​
-  * ''​%%"​ERROR:​ Simulation ​already ​started. Cannot perform action"​%%''​+  * ''​%%"​ERROR:​ Simulation ​not started. Cannot perform action"​%%''​
  
 == Input == == Input ==
Line 254: Line 254:
  
   * returnează energia curenta a TerraBot-ului   * returnează energia curenta a TerraBot-ului
 +
 +Mesaje posibile pentru aceasta comanda:
 +
 +  * ''​%%"​TerraBot has ${energy_points} energy points left."​%%''​
 +  * ''​%%"​ERROR:​ Simulation not started. Cannot perform action"​%%''​
 +
 +== Input ==
 +
 +<spoiler Click pentru input getEnergyStatus>​
 +<code json>
 +{
 +    "​command":​ "​getEnergyStatus",​
 +    "​timestamp":​ 8
 +}
 +</​code>​
 +</​spoiler>​
 +
 +== Output ==
 +
 +<spoiler Click pentru output getEnergyStatus>​
 +<code json>
 +{
 +    "​command":​ "​getEnergyStatus",​
 +    "​message":​ "​TerraBot has 189 energy points left.",​
 +    "​timestamp":​ 8
 +}
 +</​code>​
 +</​spoiler>​
 +
 +\\
  
 ==== printEnvConditions==== ==== printEnvConditions====
Line 265: Line 295:
       * componenta aerului       * componenta aerului
  
 +
 +== Input ==
 +
 +<spoiler Click pentru input printEnvConditions>​
 +<code json>
 +{
 +    "​command":​ "​printEnvConditions",​
 +    "​timestamp":​ 5
 +}
 +</​code>​
 +</​spoiler>​
 +
 +== Output ==
 +
 +<spoiler Click pentru output printEnvConditions>​
 +<code json>
 +{
 +    "​command":​ "​printEnvConditions",​
 +    "​output"​ : {
 +        "​soil":​ {
 +            "​type":​ "​ForestSoil",​
 +            "​nitrogen":​ 3.2,
 +            "​waterRetention":​ 0.55,
 +            "​soilpH":​ 6.8,
 +            "​organicMatter":​ 0.4,
 +            "​leafLitter":​ 0.3
 +        },
 +        "​plant":​ {
 +            "​type":​ "​Algae",​
 +            "​name":​ "​RedAlgae",​
 +        },
 +        "​animal":​ {
 +            "​type":​ "​Herbivores",​
 +            "​name":​ "​Cow"​
 +        },
 +        "​water":​ {
 +            "​type":​ "​lake",​
 +            "​purity":​ 92.0,
 +            "​salinity":​ 0.5,
 +            "​turbidity":​ 4,
 +            "​contaminantIndex":​ 1.5,
 +            "​pH":​ 6.8,
 +            "​isFrozen":​ false,
 +        },
 +        "​air":​ {
 +            "​type":​ "​Tropical Air",
 +            "​mass":​ 1500000.0,
 +            "​humidity":​ 85.0,
 +            "​temperature":​ 30.5,
 +            "​oxygenLevel":​ 21,
 +            "​co2Level":​ 400.0
 +        }
 +    },
 +    "​timestamp":​ 5
 +}
 +</​code>​
 +</​spoiler>​
 +
 +\\
 ==== printMap==== ==== printMap====
  
Line 272: Line 361:
       * calitatea solului ​       * calitatea solului ​
  
 +Mesaje posibile pentru aceasta comanda:
  
 +  * ''​%%"​Simulation has ended."​%%''​
 +  * ''​%%"​ERROR:​ Simulation not started. Cannot perform action"​%%''​
 +
 +== Input ==
 +
 +<spoiler Click pentru input printMap>​
 +<code json>
 +{
 +    "​command":​ "​printMap",​
 +    "​timestamp":​ 23
 +}
 +</​code>​
 +</​spoiler>​
 +
 +== Output ==
 +
 +<spoiler Click pentru output printMap>​
 +<code json>
 +{
 +    "​command":​ "​endSimulation",​
 +    "​message":​ "​Simulation has ended.",​
 +    "​timestamp":​ 10
 +}
 +</​code>​
 +</​spoiler>​
 +
 +\\
 ==== printKnowledgeBase==== ==== printKnowledgeBase====
  
poo-ca-cd/teme/2025/8e211bfe-f6eb-467c-9e54-f8e6df4c1535/tema-1.1759531629.txt.gz · Last modified: 2025/10/04 01:47 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