Astah SysML Tutorial
Now let's move on to creating the Parametric Diagram below.
From P.180 Figure.B.24 - Defining Fuel Flow Constraints (Parametric Diagram) of OMG SysML 1.2)
A parametric diagram is defined as a restricted form of the Internal Block Diagram. A Parametric Diagram may contain constraint properties and their parameter, along with other properties from within the Internal Block context.
Let's create a new Parameter Diagram by Right-clicking the "PowerSubSystem" Block and selecting [Add Parametric Diagram] from its Pop-up menu.
First, draw the Constraint Property which is a property of any Block that is typed by a Constraint Block. We need a Constraint Block to do that, so let's create one. Right-click on the root-topic and create a new Package to hold this Constraint Block from [Create Model] - [Add Package] and name it as "Constraints". Now create a new Constraint Block in this Package by right-clicking on it, then go to [Create Model] - [Add Constraint Block] and name it as "FuelFlow".
A Constraint Block "FuelFlow" is created. Go to [Constraint] tab of its Property View and add the constraint from the Constraint field as shown below.
Now drag the Constraint Block from the Structure Tree into the diagram editor and name it "fuelflow".
Now Create the Value Properties that are shown in pink in the sample diagram. But before we do that, we need to create a few Blocks first. Let's quickly create a new Block Definition Diagram with the instruction below for you to practice!
- Create a new Block Definition Diagram name it whatever you like
- In the Structure Tree, select [PowerSubSystem] and [InternalCombustionEngine] Blocks, then drag and drop them on the Block Definition Diagram
- Next create two more Blocks - FuelFlowRate and FuelDemand and create Compositions between them
- Let's add values to the "FuelFlowRate" and "FuelDemand" Blocks. To do so, select each Block and go to its Property View and open the [values] tab. Click [Add] button, and then name it "fuelDemand" and choose Type for "Real" from its dropdown list. Now let's do the same to "fuelFlowRate". Astah_another_Block_Definition_values
Now that you are all set, let's get back to the Parametric Diagram and create an "ice.fi.fuelDemand" Value Property. First select the Value Property from the tool bar and click on the diagram.
When you click on a diagram, the following dialog appears.
Select "fuelDemand:Real" and then click [OK]. Now create another Value Property in a same way you just did.
Now all you need to do is to add the Value Properties and the Constraint Parameter with Binding Connector to complete this Parametric Diagram. To connect them with BindingConnector, you need to add the "Constraint Parameter" to the Constraint Properties first.
Select the "Constraint Parameter" and add it to "fuelflow" Constraint Property and name them as shown in the sample diagram.
Now select "BindingConnector" and then connect each Value Type and the Constraint Property.
You have completed this Parametric Diagram.