|
@@ -633,9 +633,7 @@ Void function execute_actions(model : Element, source_states : Element, target_s
|
|
|
if (element_neq(action, read_root())):
|
|
|
// Got a script, so execute!
|
|
|
action = resolve_function(action, data)
|
|
|
- log("Executing script 'action'!")
|
|
|
action(data["current_class_handle"]["attributes"])
|
|
|
- log("DONE")
|
|
|
|
|
|
// Raise events
|
|
|
events = allAssociationDestinations(model, state, "SCCD/onExitRaise")
|
|
@@ -647,9 +645,7 @@ Void function execute_actions(model : Element, source_states : Element, target_s
|
|
|
if (element_neq(parameter_action, read_root())):
|
|
|
// Got a parameter to evaluate
|
|
|
parameter_action = resolve_function(parameter_action, data)
|
|
|
- log("Execution script 'parameter_action'!")
|
|
|
parameter_action = parameter_action(data["current_class_handle"]["attributes"])
|
|
|
- log("DONE")
|
|
|
|
|
|
process_raised_event(model, event, parameter_action, data)
|
|
|
|
|
@@ -668,9 +664,7 @@ Void function execute_actions(model : Element, source_states : Element, target_s
|
|
|
if (element_neq(action, read_root())):
|
|
|
// Got a script, so execute!
|
|
|
action = resolve_function(action, data)
|
|
|
- log("Executing script 'act2'!")
|
|
|
action(data["current_class_handle"]["attributes"])
|
|
|
- log("DONE")
|
|
|
|
|
|
// Raise events
|
|
|
events = allAssociationDestinations(model, state, "SCCD/onEntryRaise")
|
|
@@ -682,9 +676,7 @@ Void function execute_actions(model : Element, source_states : Element, target_s
|
|
|
if (element_neq(parameter_action, read_root())):
|
|
|
// Got a parameter to evaluate
|
|
|
parameter_action = resolve_function(parameter_action, data)
|
|
|
- log("Executing script 'param2'!")
|
|
|
parameter_action = parameter_action(data["current_class_handle"]["attributes"])
|
|
|
- log("DONE")
|
|
|
|
|
|
process_raised_event(model, event, parameter_action, data)
|
|
|
|
|
@@ -696,10 +688,7 @@ Void function execute_actions(model : Element, source_states : Element, target_s
|
|
|
while (set_len(timed_transitions) > 0):
|
|
|
transition = set_pop(timed_transitions)
|
|
|
after = resolve_function(read_attribute(model, transition, "after"), data)
|
|
|
- log("Executing script 'after'!")
|
|
|
- log("Function: " + cast_e2s(after))
|
|
|
dict_add(data["current_class_handle"]["timers"], transition, float_addition(data["time_sim"], after(data["current_class_handle"]["attributes"])))
|
|
|
- log("DONE")
|
|
|
|
|
|
return !
|
|
|
|