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 02:34]
ioana.tudorache2507 [Comenzi pentru mediu]
poo-ca-cd:teme:2025:8e211bfe-f6eb-467c-9e54-f8e6df4c1535:tema-1 [2025/10/04 03:42] (current)
ioana.tudorache2507 [printMap]
Line 295: 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 302: 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.1759534464.txt.gz · Last modified: 2025/10/04 02:34 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