Main Content

children

Class: slreq.ReqSet
Package: slreq

Get top-level items in requirement set

Syntax

reqs = children(rs)

Description

reqs = children(rs) returns the top-level items in the requirement set rs. The items can be requirements, referenced requirements, or justifications.

Input Arguments

expand all

Requirement set, specified as an slreq.ReqSet object.

Output Arguments

expand all

Top-level items in the requirement set, returned as an array of slreq.Requirement, slreq.Reference, or slreq.Justification array.

Examples

expand all

This example shows how to get the top-level items in a requirement set.

Open the CruiseRequirementsExample project. Load the crs_req_func_spec requirement set.

slreqCCProjectStart;
rs = slreq.load("crs_req_func_spec");

Get the top-level items in the requirement set.

topItems = children(rs)
topItems=1×5 object
  1x5 heterogeneous BaseEditableItem (Requirement, Justification) array with properties:

    Id
    Summary
    Description
    Keywords
    Rationale
    CreatedOn
    CreatedBy
    ModifiedBy
    IndexEnabled
    IndexNumber
    SID
    FileRevision
    ModifiedOn
    Dirty
    Comments
    Index

Tips

Version History

Introduced in R2017b