Main Content

isHierarchical

Class: slreq.Justification
Package: slreq

Check if justification is hierarchical

Syntax

tf = isHierarchical(jt)

Description

tf = isHierarchical(jt) checks if the slreq.Justification object jt is part of a hierarchy of justifications and returns the Boolean tf.

Input Arguments

expand all

Justification, specified as an slreq.Justification object.

Output Arguments

expand all

The hierarchical justification status of the slreq.Justification object, returned as a Boolean.

Examples

Query Hierarchical Justification Status

% 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×9 Justification array with properties:

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

% Check if the first justification in allJusts is hierarchically justified
tf = isHierarchical(allJusts(1))

tf = 
  
  logical

   0

Version History

Introduced in R2018b