|
@@ -121,7 +121,6 @@ Element function get_possible_bindings(host_model : Element, schedule_model : El
|
|
|
options = allInstances(host_model, original_typename)
|
|
|
elif (read_nr_out(options) > 1):
|
|
|
// Multiple "only" options, which will not work out: no options!
|
|
|
- log(" multi!")
|
|
|
return create_node()!
|
|
|
|
|
|
// Filter options further
|
|
@@ -147,7 +146,6 @@ Element function get_possible_bindings(host_model : Element, schedule_model : El
|
|
|
Element func
|
|
|
|
|
|
constraint_function = read_attribute(schedule_model, current_element, "constraint")
|
|
|
- log("1")
|
|
|
func = get_func_AL_model(import_node(constraint_function))
|
|
|
result = func(host_model, option)
|
|
|
|
|
@@ -180,7 +178,6 @@ Element function get_possible_bindings(host_model : Element, schedule_model : El
|
|
|
value = read_attribute(schedule_model, current_element, attribute)
|
|
|
// Attribute might be undefined, so skip if it is
|
|
|
if (element_neq(value, read_root())):
|
|
|
- log("2")
|
|
|
func = get_func_AL_model(import_node(value))
|
|
|
result = func(read_attribute(host_model, option, string_substr(attribute, string_len("constraint_"), string_len(attribute) + 1)))
|
|
|
else:
|
|
@@ -279,7 +276,6 @@ Element function match(host_model : Element, schedule_model : Element, LHS : Str
|
|
|
if (element_neq(constraint, read_root())):
|
|
|
while (read_nr_out(mappings) > 0):
|
|
|
map = set_pop(mappings)
|
|
|
- log("3")
|
|
|
func = get_func_AL_model(import_node(constraint))
|
|
|
result = func(host_model, map)
|
|
|
|
|
@@ -377,7 +373,6 @@ Void function rewrite(host_model : Element, schedule_model : Element, RHS : Stri
|
|
|
|
|
|
value = read_attribute(schedule_model, RHS_map[label], attribute)
|
|
|
if (element_neq(value, read_root())):
|
|
|
- log("4")
|
|
|
func = get_func_AL_model(import_node(value))
|
|
|
result = func(host_model, new_mapping[label], mapping)
|
|
|
|
|
@@ -392,9 +387,6 @@ Void function rewrite(host_model : Element, schedule_model : Element, RHS : Stri
|
|
|
action = read_attribute(schedule_model, RHS_map[label], "action")
|
|
|
if (element_neq(action, read_root())):
|
|
|
Element func
|
|
|
- log("5")
|
|
|
- log("Got action: " + cast_e2s(action))
|
|
|
- log("After import: " + cast_e2s(import_node(action)))
|
|
|
func = get_func_AL_model(import_node(action))
|
|
|
func(host_model, new_mapping[label], mapping)
|
|
|
|
|
@@ -408,7 +400,6 @@ Void function rewrite(host_model : Element, schedule_model : Element, RHS : Stri
|
|
|
action = read_attribute(schedule_model, RHS, "action")
|
|
|
if (element_neq(action, read_root())):
|
|
|
Element func
|
|
|
- log("6")
|
|
|
func = get_func_AL_model(import_node(action))
|
|
|
func(host_model, new_mapping)
|
|
|
|