|
@@ -240,6 +240,7 @@ Element function get_possible_bindings(host_model : Element, schedule_model : El
|
|
|
|
|
|
Element function full_match(host_model : Element, schedule_model : Element, current : String, single_ok : Boolean):
|
|
|
Element NACs
|
|
|
+ Element NACs_backup
|
|
|
String LHS
|
|
|
String NAC
|
|
|
Element mappings
|
|
@@ -255,12 +256,13 @@ Element function full_match(host_model : Element, schedule_model : Element, curr
|
|
|
mappings = match(host_model, schedule_model, LHS, dict_create())
|
|
|
|
|
|
// Got a list of all possible mappings, now filter based on NACs
|
|
|
- NACs = allAssociationDestinations(schedule_model, current, "NACLink")
|
|
|
+ NACs_backup = allAssociationDestinations(schedule_model, current, "NACLink")
|
|
|
|
|
|
// For each possible mapping, we check all NACs!
|
|
|
while (set_len(mappings) > 0):
|
|
|
mapping = set_pop(mappings)
|
|
|
allowed = True
|
|
|
+ NACs = set_copy(NACs_backup)
|
|
|
while (set_len(NACs) > 0):
|
|
|
NAC = set_pop(NACs)
|
|
|
result = match(host_model, schedule_model, NAC, mapping)
|