port-usage-nested-usages-not-composite
Available in: SysML
This checks that port usages only own referential (non-composite) usages or other ports.
Specification
The
nested_usagesof aPortUsagethat are not themselvesPortUsagesmust not be composite.
Example
port p {
part p; // error
}
Use implicitly referential usages:
port p {
attribute p; // ok
}
Or add ref keyword:
port p {
ref part p; // ok
}