Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add battery plugin and fix DAG doc
[simgrid.git] / examples / cpp / dag-from-json-simple / dag.json
diff --git a/examples/cpp/dag-from-json-simple/dag.json b/examples/cpp/dag-from-json-simple/dag.json
new file mode 100644 (file)
index 0000000..ea77850
--- /dev/null
@@ -0,0 +1,42 @@
+{
+  "name": "simple_json",
+  "schemaVersion": "1.0",
+  "workflow": {
+    "makespan": 0,
+    "executedAt": "2023-03-09T00:00:00-00:00",
+    "tasks": [
+      {
+        "name": "c1",
+        "type": "compute",
+        "parents": [],
+        "runtime": 1e9,
+        "machine": "Tremblay"
+      },
+      {
+        "name": "t1",
+        "type": "transfer",
+        "parents": ["c1"],
+        "bytesWritten": 5e8,
+        "machine": "Jupiter"
+      },
+      {
+        "name": "c2",
+        "type": "compute",
+        "parents": [],
+        "runtime": 5e9,
+        "machine": "Jupiter"
+      },
+      {
+        "name": "c3",
+        "type": "compute",
+        "parents": ["t1","c2"],
+        "runtime": 2e9,
+        "machine": "Jupiter"
+      }
+    ],
+    "machines": [
+      {"nodeName": "Tremblay"},
+      {"nodeName": "Jupiter"}
+    ]
+  }
+}
\ No newline at end of file