Main Content

Define Requirements Hierarchy

Using金宝app®需求™, you can derive lower-level requirements from higher-level requirements to establish and manage parent-child relationships.

The requirement set is the top level of hierarchy for all requirements. All requirements inSimulink Requirementsare contained in requirement sets. Every top-level parent requirement in a requirement set is the first-level hierarchy for that set. Referenced requirements (slreq.Referenceobjects) and requirements (slreq.Requirementobjects) cannot share a parent requirement.

Within a requirement set, you can change the level of individual requirements by usingPromote RequirementorDemote Requirementin the Requirements Editor, or theicons on the需求Browsertoolbar. When you promote or demote a requirement with children, the parent-child hierarchical relationship is preserved. You can also move requirements up and down the same level of hierarchy by right-clicking the requirement and selectingMove uporMove down.

实施和验证状态指标for a requirement set are cumulatively aggregated over all the requirements in the set. Each parent requirement in a requirement set derives its metrics from all its child requirements. For more information on the Implementation and Verification Status metrics, seeReview Requirements Implementation StatusandReview Requirements Verification Status.

Requirement Sets

You can create requirement sets from the Requirements Editor and from the需求Browser. Requirement set files (.slreqx) are not inherently associated with your Simulink models.

Requirement sets have built-in properties such as the Filepath and the Revision number associated with them as metadata. Except for theDescription, properties of the requirement set are read-only and are updated as you work with the requirement set.

Custom Attributes of Requirement Sets

Define custom attributes for your requirement sets that apply to the requirements they contain. Custom attributes extend the set of properties associated with your requirements. Define custom attributes for a requirement set from theCustom Attribute Registries锅e of the Requirements Editor.

To define custom attributes:

  1. Open the Requirements Editor. In theAppstab, click需求Manager. In the需求tab, click需求Editor.

  2. Select the requirement set and clickAddin theCustom Attribute Registries锅e.

  3. The Custom Attribute Registration dialog box opens. Select the type of custom attribute you want to set for your requirements by using theTypedrop-down list. You can specify custom attributes as text fields, check boxes, and combo boxes and date time entries.

To view the custom attributes for your requirements in the spreadsheet, right-click the requirement set and clickSelect Attributes.

When you define a custom attribute as a combobox, the first entry is preset toUnsetand it cannot be renamed or deleted. Custom attributes that are imported as referenced requirements from an external document become read-only custom attributes after they are imported. The custom attributes of a requirement set are associated with every individual requirement in the set and removing the custom attributes for a requirement set removes it from all the requirements in the set.

SeeCustomize Requirements with Custom Attributesfor more information about creating custom attributes for requirements.

Related Topics