|
@@ -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!
|