Main Content

children

Class: slreq.Justification
Namespace: slreq

Find children justifications

Syntax

childJusts = children(jt)

Description

childJusts = children(jt) returns the child justifications childJusts of the slreq.Justification object jt.

Input Arguments

expand all

Justification, specified as an slreq.Justification object.

Output Arguments

expand all

The child justifications belonging to the justification jt, returned as slreq.Justification objects.

Examples

Find Child Justifications

% Load a requirement set file and find justification objects
rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx');
allJusts = find(rs, 'Type', 'Justification')

allJusts = 

  1×20 Justification array with properties:

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

jt1 = allJusts(1);

% Find the children of jt1
childJusts = children(jt1)

childJusts = 

   1×10 Justification array with properties:

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

Tips

  • To get the top-level items in a requirement set, use the children method of slreq.ReqSet. To get the child requirements of a requirement, use the children method of slreq.Requirement. To get the child referenced requirements of a referenced requirement, use the children method of slreq.Reference.

Version History

Introduced in R2018b