SysMLv1: Cameo Simulation Toolkit: GOTCHA: In SysMLv1 it is "officially" recommended that an analysis context Block has a reference (only) to the subject of the analysis (but then you need to assign an instance as default value to make it run IN THE TOOL)

Icon class
icon_class
far fa-sticky-note
icon_class_computed
far fa-sticky-note
Note kind
Policy level
Specification keywords
UML keywords
SysMLv1.x keywords
Keywords
Click on the image to view it full size

Ever setup a SysMLv1 Parametrics analysis in Magic Model Analyst® (Cameo Simulation Toolkit®) the way you are "supposed" to do it based on the SysMLv1 sample figures – with a reference (only) from your analysis context Block to the analysis subject Block – then wondered why it doesn't do anything when you run your Parametric Diagram? And even when your reference property has multiplicity 1?

It's because Cameo needs to be told how to instantiate the reference. One way you can do that is by assigning a default value to the reference property using an additional InstanceSpecification. (Another way is to use a Sim Config, but using a default is easy for this case.)

In the example shown, there is a reference property subject:Subject and an instance sInit:Subject, which you easily can assign as a default value in the tool in a Diagram (such as a BDD) by dragging that instance onto the reference property.

It's actually easier to use 'composite' aggregation, even if it's not "officially recommended" SysMLv1. For 'composite' aggregation the tool will automatically create the instance for you when you execute the Parametric Diagram.

Both approaches validate in the tool and run just fine.

To see the "officially recommended" SysMLv1 setup for an analysis context see for example the Hybrid SUV samples figures which show references from CapacityContext and EconomyContext to AutomotiveDomain.
Visit also:

Learn SysML for MBSE with the Webel IT Australia Live Online web seminar or On-Site course!

Please email or phone Webel IT Australia on +61 405 029 008 to arrange On-Site, Off-Site, or Live Online remote web training seminars and workshops.
Relates to
Related notes
Related notes (backlinks)
Related snippets (extracts)
Visit also
Visit also (backlinks)