Hello there,
I am trying my first steps and have some problems to get everything working.
From my understanding, a port can have multiple connections to different ports. Also from my understanding, SysML2 should support to have the same name for the connections, too.
Short example:
package test_multiconnection {
private import ScalarValues::*;
package Interfaces {
/* Definition of what is exchanged */
item def Power12V;
port def Power12VInPort {
in item Power : Power12V;
}
port def Power12VOutPort {
out item Power : Power12V;
}
} // package Interfaces
part def Main_Connector {
attribute partName : String = "Tyco 22+2pins (2404849-1)";
port BA : Interfaces::Power12VOutPort;
}
part def RPP_IDC {
attribute partName : String = "MPQ5852";
port Vin : Interfaces::Power12VInPort;
port Vout : Interfaces::Power12VOutPort;
port EN : Interfaces::Power12VInPort;
}
part mainConnector : Main_Connector {
}
part rppIdc : RPP_IDC {
}
connection BA connect mainConnector.BA to rppIdc.Vin {
flow of Interfaces::Power12V {
end ::> source;
end ::> target;
}
}
connection BA connect mainConnector.BA to rppIdc.EN {
flow of Interfaces::Power12V {
end ::> source;
end ::> target;
}
}
view partsAndConnectionsAllInstancesView {
render Views::asInterconnectionDiagram;
expose mainConnector;
expose rppIdc;
expose BA;
}
}
As you can see, there are 2x connections with the name BA. I only get 1 shown in Tom Sawyer (with rightclick “visualize element (labs)”-> “as nested diagram” , the second one is missing.
When using the CLI I also get the error:
C:/…/test_multiconnection.sysml:42:16: error (namespace-distinguishability): Member name ‘BA’ shadows test_multiconnection::BA
Aborted: 1 error in model. No output written.
Error: syside-drawer exited with code 1
I assume this is an issue on how the tooling handles namespaces, but my question is more: Is this according to SysML2 AND what would be a solution, if I need the name to be the same?