summaryrefslogtreecommitdiff
path: root/site/docs/documentation
diff options
context:
space:
mode:
authorAlessio Leonardo Tomei <122273875+T0mexX@users.noreply.github.com>2024-08-22 14:40:57 +0200
committerGitHub <noreply@github.com>2024-08-22 14:40:57 +0200
commit4f98fb2bf8204f6af52cd6eeb3313d21c6ca95bc (patch)
treea9a67ce01615cfccfc787573626ae8c9f2ff740c /site/docs/documentation
parentb2877899b9479458dba5e7dcba2891f1248b5d6d (diff)
Added Unit of measurament system with new deserialization (#242)
Diffstat (limited to 'site/docs/documentation')
-rw-r--r--site/docs/documentation/Input/Topology.md35
1 files changed, 35 insertions, 0 deletions
diff --git a/site/docs/documentation/Input/Topology.md b/site/docs/documentation/Input/Topology.md
index 23286c09..12e9c485 100644
--- a/site/docs/documentation/Input/Topology.md
+++ b/site/docs/documentation/Input/Topology.md
@@ -178,3 +178,38 @@ Following is an example of a more complex topology:
This topology defines two types of hosts with different coreCount, and coreSpeed.
Both types of hosts are created twice.
+
+
+### With Units of Measure
+
+Aside from using number to indicate values it is also possible to define values using strings. This allows the user to define the unit of the input parameter.
+```json
+{
+ "clusters": [
+ {
+ "count": 2,
+ "hosts" :
+ [
+ {
+ "name": "H01",
+ "cpu":
+ {
+ "coreCount": 8,
+ "coreSpeed": "3.2 Ghz"
+ },
+ "memory": {
+ "memorySize": "128e3 MiB",
+ "memorySpeed": "1 Mhz"
+ },
+ "powerModel": {
+ "modelType": "linear",
+ "power": "400 Watts",
+ "maxPower": "1 KW",
+ "idlePower": "0.4W"
+ }
+ }
+ ]
+ }
+ ]
+}
+```