Learn about Webel's comprehensive SysMLv2 Workshop Seminar course!
Webel now has a SysMLv2 Online Self-Study course with self-test Quizzes!
Learn about the Webel Q&A online self-testing system for SysML v2/v1

Webel: SysMLv2: For a quantity «attribute» prefer feature typing by an ISQ «attribute def» over subsetting of an ISQ «attribute» (the names of which don't cover all cases anyway so eventually you'll need to use the feature typing approach).

Icon class
icon_class
far fa-sticky-note
icon_class_computed
far fa-sticky-note
Note kind
Policy level
Specification keywords
SysMLv2 keywords
Keywords

For example, if you want to model a Cuboid with a width, depth, and height, you'd need to create a custom depth either by "repurposing " ISQ length using subsetting or just using ISQ LengthValue as depth:LengthValue anyway, since the ISQ model libraries don't have an «attribute» 'depth'.

Sooner or later, you are going to need to use the feature tying approach, so you might as well use that consistently from the start. Unless you wish to do something like this:

attribute elapseTime :> ISQ::duration;

It's not clear that that's any easier or better than just using the elapseTime:DurationValue. Maybe there's some other rationale for preferring the subsetting approach, but it's not used in all the SysML2.0 Annex or GitHub samples anyway.

And although slightly more verbose, using feature typing by a ISQ «attribute def» helps avoid possible issues with multiplicities and subsetting:

Relates to
Related notes
Related notes (backlinks)
Related snippets (extracts)
Visit also
Visit also (backlinks)