On this page
Systems Modeling Language (SysML) is used to capture systems design as descriptive and analytical system models, which relate text requirements to the design and provide a baseline to support analysis and verification. With the system parameter calculated, you can verify the system requirement and decide whether it is satisfied or not. The modeling tool enables you to perform this verification automatically.
Getting ready for automated Requirements verification
Before performing the automatic Requirements verification, you need to get ready.
To get ready for automated Requirements verification
- Define the constraint in the Requirement text.
Create a Satisfy relationship from the Value Property to the Requirement.
The Value Property captures the system parameter whose value determines whether the system requirement is satisfied or not.
Do one of the following:
If the Use Requirement Term Glossary option is enabled, the condition pattern in the Requirement text is underlined. Move the mouse pointer over it to see the expression in the tooltip. If it is correct, you are ready to perform the automatic Requirement verification.
- If the expression in the tooltip is not correct, do the following:
- Perform either of the two options:
- Right-click a value property in the compartment area of the element shape.
- Right-click the Requirement.
- Select Tools > Extract Constraint Block From Requirement to automatically create a Constraint Block.
- You can modify the constraint expression and the parameters as needed (see Figure A below).
- Perform either of the two options:
You are now ready to perform the automatic Requirement verification.
In the example above, a Constraint Block with the constraint {totalMass <= 20} and the constraint parameters is automatically created. The constraint expression is then modified to {tm=clm+html+ctm+snm+m}{tm<=20}.
Performing automated Requirements verification in Requirement Table
The automated Requirements verification analysis can be carried out directly in the Requirement Table. The analysis is performed by evaluating whether the value of the property that satisfies the Requirement falls within a range of upper and lower bounds that are extracted from the Requirement text. Additionally, the automatically calculated margin value helps to determine how close the system model is to fulfilling Requirements.
To perform automated Requirements verification
- Create a Requirement Table. You can also use an existing Requirement Table.
- Specify the scope for the table.
Set the context element (i.e., a Block as the table context) to perform the context-specific analysis.
Note
If the Context field is left unspecified, properties satisfying Requirements are collected from the entire model.
Select the columns (Columns > Select Columns) to show in the table:
- Property - the Value Property that satisfies the Requirement.
- Bounds - lower and upper bounds of the required value extracted from the Requirement text.
- Value - the calculated value (default value or initial value) of the property that satisfies the Requirement.
- Margin - the difference between the calculated value and the required value.
- Property - the Value Property that satisfies the Requirement.
Display the Requirement Verification legend to highlight passing and failing Requirements.
The Requirement Table with the Property, Bounds, Value, and Margin columns is created and passing/failing Requirements are marked (see an image below).
Using the Requirement patterns mechanism, the constraint extracted from the Requirement text is shown in the Bounds column. The Value column shows the initial value (if it exists) or the default value of the Value Property. Finally, the Margin column displays the difference between the calculated and required values.
Requirements refined by Constraint Blocks
The Requirements Verification analysis in the Requirement Table considers constraints extracted directly from the Requirement text only, meaning that the analysis cannot be performed for Requirements refined by Constraint Blocks.
Simulation configuration option
If an Instance is defined as the Requirement Table context, the Requirements verification analysis does not consider the Simulation configuration option Remember Failure Status.
Performing automated requirements verification using Simulation
With the help of simulation, you can perform automatic Requirements verification.
To perform automatic Requirements verification you must have the Cameo Simulation Toolkit installed. How to install >>
To perform automatic Requirements verification
- Right-click the Block which contains the Value Property.
- From the shortcut menu, select Simulation > Run.
In the Question dialog, click Yes to load the validation rules and validate the model before the simulation or No to simulate the model without validating it.
- In the Simulation window, click or press F8 to start simulation.
The result indicating whether or not the value is satisfied is shown in the Variables pane. In the following figure, you can see when the Requirement is not satisfied (highlighted in red) and satisfied (highlighted in green). You can change the value directly in the Value cell and the Requirement constraint is checked automatically.
Additional features of Cameo Simulation Toolkit