port-definition-owned-usages-not-composite

Available in: SysML

This checks that port definitions only own referential (non-composite) usages or other ports.

Specification

The owned_usages of a PortDefinition that are not PortUsages must not be composite.

Example

port def P {
    part p; // error
}

Use implicitly referential usages:

port def P {
    attribute p; // ok
}

Or add ref keyword:

port def P {
    ref part p; // ok
}