瀏覽代碼

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

Yentl Van Tendeloo 7 年之前
父節點
當前提交
d5c5902e5b
共有 1 個文件被更改,包括 8 次插入1 次删除
  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!