subsetting-uniqueness-conformance
Available in: KerML, SysML
This checks that unique features are only subsetted by other unique features.
Specification
If the
subsetted_featureof aSubsettinghasis_unique = true, then thesubsetting_featuremust haveis_unique = true.
Example
part def A { attribute a; }
part def B :> A {
attribute b :> a nonunique; // error
}
Instead, remove nonunique from the subsetting feature:
part def A { attribute a; }
part def B :> A {
attribute b :> a; // ok
}