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_usagesof aPortDefinitionthat are notPortUsagesmust 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
}