Tutorial 3: Advanced SpecTypes | ||
---|---|---|
![]() |
![]() |
|
Tutorial 2: Use Presentations | Tutorial 4: Links between SpecObjects (SpecRelations) |
So far, we have a model with only one SpecObjectType. In this tutorial, we will show how we can work with multiple SpecTypes, and we will introduce other SpecTypes.
The first entry in our Specification ("A ProR Tutorial") isn't really a requirement. Thus, it doesn't need an ID or an owner, and it would be nice to Highlight it somehow. For Highlighting, we have the Headline Presentation. We will:
With ProR > Datatype Configuration we get the Dialog where we can create new SpecTypes and Datatypes. For the first time, we create a new SpecObjectType by right-clicking on "SpecTypes". One of the entries in the child menu is "SpecObject Type".
Once created, we select it and rename to "Headline Type" it in the properties.
Then we give it a new Attribute called "Description".
NOTE: It is important that we call it description. This matches the Attribute from "Requirement Type". By using the same name, we ensure that the Attributes appear in the same column, even though they are different Attributes.
We do not set the type yet, as we need to create a new one. We do this by right-clicking on "Datatypes". There we create a new "Datatype Definition String" and call it "T_Headline". Now we can go back to the Description Attribute and set the type to T_Headline.
When all this is done, the configuration should look like this:
You can change the type of a SpecObject by selecting it an changing it in the Properties view. Please note that currently all existing values are lost when changing the type.
After the changes, the GUI should look as follows:
Note the following:
Last, we will use the Headline Presentation for the type T_Headline. This is done via the Presentation Configuration, and should result in the following. In addition, you can change the font size of the headline in the "Size" Attribute:
You may have noticed in the Datatype Configuration Dialog, that right-clicking on "SpecTypes" offered more options, besides "Spec Object Type". A number of ReqIF-Elements can have Attributes.
We will now create a "Specification Type" and assign it to our Specification.
Try to create a "Specification Type" and configure it as shown in the screenshot:
Next, we will assign this type to the one Specification that we have. To do this we select the Specification in the Outline View. That will show the Specification's Properties in the Properties View. The "Type" Property is empty. We select "Specification Type" from the drop down. As soon as it is selected, the Attribute "Description" will appear in the properties view.
![]() |
![]() |
![]() |
Tutorial 2: Use Presentations | Tutorial 4: Links between SpecObjects (SpecRelations) |