Systems-Modeling / SysML-v2-Pilot-Implementation

Proof-of-concept pilot implementation of the SysML v2 textual notation and visualization
GNU Lesser General Public License v3.0
114 stars 23 forks source link

ST6RI-714 PortUsage::isComposite is implemented incorrectly #515

Closed seidewitz closed 7 months ago

seidewitz commented 7 months ago

In the SysML v2 Specification, the validatePortUsageIsReference constraint only requires a PortUsage to be referential if it is not a feature of a PortDefinition or PortUsage. This PR corrects the implementation of PortUsageImpl::isComposite which previously always returned false, even if the port was a feature of a port definition or usage. With this correction, a PortUsage nested in a PortDefinition or PortUsage is composite by default and only referential if declared with the ref keyword.