Bind Parameters of a ConstraintProperty
When you create a ConstraintProperty, you define an equation or expression as the constraint. You can then bind the parameters of the constraint to properties to identify what the parameter is and where its values come from.
In a diagram, right-click on an existing ConstraintProperty | Edit Constraint Property...
In Browser window | Drag a Constraint Block and drop it on a Parametric diagram
A ConstraintProperty with all the parameters will be created
Bind parameter to properties in context
In this example, we create the Constraint Block 'FMA' and use it as a ConstraintProperty 'fma' in the context of a Block 'FMA_Test', which contains three properties: 'Property1', 'Property2' and 'Property3'.
Right-click on ConstraintProperty 'fma' and select the 'Edit Constraint Property...' context menu option to open the 'SysML ConstraintProperty Parameter Binding' dialog.
Click on the button in the same row as a parameter to open the 'Hierarchy Properties Picker' dialog; choose a property to bind to the parameter.
After binding, the property will be shown on the diagram and a connector will connect it to the parameter of the ConstraintProperty. The equation 'F =M*A' becomes 'Property2 = Property3 * Property1' after binding.
Hierarchy Element Binding
In this example, Block BaseController has a ConstraintProperty e6 with parameters a, b and c. Now we want to bind the parameters to the Block's properties. Specifically, we want to bind parameter e6.c to cIn.val, which is a Flow Property defined in Block ReadSignal; cIn is the Port defined on BaseController.
This figure shows the hierarchy of properties defined in BaseController. The properties with matching type to the binding parameter will be shown with a checkbox for selection.
We select property val under cIn and click on the. The property val will be created on the diagram inside the Port cIn, and a Binding connector between cIn.val and e6.c will be created. After binding parameter e6.a to property error, and e6.b to property ref, the diagram will resemble this:
Navigate to ConstraintBlock
Select the cell of the ConstraintProperty.
Click on the button on the right to edit the typing Constraint Block. The 'Edit Constraint Block' dialog displays.