|
|
@@ -32,10 +32,18 @@ Boolean function main(model : Element):
|
|
|
// No execution in full runtime, so just flag the initial state
|
|
|
flag_initial = True
|
|
|
log("Searching for new initial state...")
|
|
|
+
|
|
|
+ // And add a new time
|
|
|
+ element_name = instantiate_node(model, "NewFullRuntime/Time", "")
|
|
|
+ instantiate_attribute(model, element_name, "current_time", 0.0)
|
|
|
else:
|
|
|
flag_initial = False
|
|
|
log("No searching for state!")
|
|
|
|
|
|
+ // Copy the time though
|
|
|
+ element_name = instantiate_node(model, "NewFullRuntime/Time", "")
|
|
|
+ instantiate_attribute(model, element_name, "current_time", read_attribute(model, set_pop(allInstances(model, "FullRuntime/Time")), "current_time"))
|
|
|
+
|
|
|
all_states = allInstances(model, "PartialRuntime/State")
|
|
|
while (set_len(all_states) > 0):
|
|
|
element_name = set_pop(all_states)
|