|
@@ -215,6 +215,7 @@ Element function model_join(models : Element, metamodel : Element, tracability_m
|
|
|
|
|
|
new_name_src = elem_map[cast_id2s(read_edge_src(tracability_model["model"][tracability_link]))]
|
|
new_name_src = elem_map[cast_id2s(read_edge_src(tracability_model["model"][tracability_link]))]
|
|
new_name_dst = elem_map[cast_id2s(read_edge_dst(tracability_model["model"][tracability_link]))]
|
|
new_name_dst = elem_map[cast_id2s(read_edge_dst(tracability_model["model"][tracability_link]))]
|
|
|
|
+
|
|
type = read_attribute(tracability_model, tracability_link, "type")
|
|
type = read_attribute(tracability_model, tracability_link, "type")
|
|
|
|
|
|
// Connect the two with the info we have
|
|
// Connect the two with the info we have
|
|
@@ -279,16 +280,12 @@ Element function model_split(merged_model : Element, models : Element, tracabili
|
|
// Got a tracability link!
|
|
// Got a tracability link!
|
|
// Is always an edge (for now?)
|
|
// Is always an edge (for now?)
|
|
// Find out source and target and hope that they are already present
|
|
// Find out source and target and hope that they are already present
|
|
- log("Create tracability link in model!")
|
|
|
|
src = reverse[cast_id2s(read_edge_src(elem))]
|
|
src = reverse[cast_id2s(read_edge_src(elem))]
|
|
dst = reverse[cast_id2s(read_edge_dst(elem))]
|
|
dst = reverse[cast_id2s(read_edge_dst(elem))]
|
|
|
|
|
|
src_name = list_read(string_split(read_type(merged_model, src), "/"), 0)
|
|
src_name = list_read(string_split(read_type(merged_model, src), "/"), 0)
|
|
dst_name = list_read(string_split(read_type(merged_model, dst), "/"), 0)
|
|
dst_name = list_read(string_split(read_type(merged_model, dst), "/"), 0)
|
|
|
|
|
|
- log("Source model name: " + cast_v2s(src_name))
|
|
|
|
- log("Destination model name: " + cast_v2s(dst_name))
|
|
|
|
- log("Result: " + dict_to_string(result))
|
|
|
|
|
|
|
|
// Check if we actually keep both models around, as otherwise it is useless anyway
|
|
// Check if we actually keep both models around, as otherwise it is useless anyway
|
|
if (bool_and(dict_in(result, src_name), dict_in(result, dst_name))):
|
|
if (bool_and(dict_in(result, src_name), dict_in(result, dst_name))):
|