|
@@ -91,9 +91,6 @@ Boolean function node_match(transf_model : Element, transf_elem : Element, host_
|
|
|
return True
|
|
return True
|
|
|
|
|
|
|
|
Integer function are_connected(model: Element, el1:Element, el2:Element):
|
|
Integer function are_connected(model: Element, el1:Element, el2:Element):
|
|
|
- log("= ARE CONNECTED")
|
|
|
|
|
- log(getName(model, el1))
|
|
|
|
|
- log(getName(model, el2))
|
|
|
|
|
String el1_mmt
|
|
String el1_mmt
|
|
|
String el2_mmt
|
|
String el2_mmt
|
|
|
el1_mmt = getMetaTypeName(model, el1)
|
|
el1_mmt = getMetaTypeName(model, el1)
|
|
@@ -113,10 +110,8 @@ Integer function are_connected(model: Element, el1:Element, el2:Element):
|
|
|
log(string_join("type = ", el2_mmt))
|
|
log(string_join("type = ", el2_mmt))
|
|
|
elif (el1_mmt == "l5"):
|
|
elif (el1_mmt == "l5"):
|
|
|
if( element_eq(read_edge_src(el1) , el2)): //warning is this the right type of equality?
|
|
if( element_eq(read_edge_src(el1) , el2)): //warning is this the right type of equality?
|
|
|
- log("source of el1 is el2")
|
|
|
|
|
return 2 //incoming
|
|
return 2 //incoming
|
|
|
elif( element_eq(read_edge_dst(el1) , el2)): //right type of equality?
|
|
elif( element_eq(read_edge_dst(el1) , el2)): //right type of equality?
|
|
|
- log("destination of el1 is el2")
|
|
|
|
|
return 1 //outgoing
|
|
return 1 //outgoing
|
|
|
else:
|
|
else:
|
|
|
return 0 //edge is not connected
|
|
return 0 //edge is not connected
|