Przeglądaj źródła

First patch, which seems to work better than using globals directly

Yentl Van Tendeloo 7 lat temu
rodzic
commit
d5c5902e5b
1 zmienionych plików z 8 dodań i 1 usunięć
  1. 8 1
      models/cbd_restartSim.alc

+ 8 - 1
models/cbd_restartSim.alc

@@ -1,5 +1,12 @@
 include "primitives.alh"
+include "io.alh"
+include "utils.alh"
 
 Boolean function main(model : Element):
-	log("Restarting simulator (TODO")
+	Element tasknames
+	Element root
+	root = read_root()
+	tasknames = set_copy(root[get_taskname()]["globals"]["pm_tasks"]["value"]["simulate"])
+	while (set_len(tasknames) > 0):
+		give_input_to_other(set_pop(tasknames), "")
 	return True!