setHierarchical
Class: slreq.Justification
Package: slreq
Syntax
setHierarchical(jt, tf)
Description
setHierarchical(
changes the hierarchical justification status of the jt
, tf
)slreq.Justification
object jt
as specified by the Boolean tf
.
Input Arguments
Examples
Change 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×10 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 % Change the first justification in allJusts to be hierarchically justified setHierarchical(allJusts(1), true);
Version History
Introduced in R2018b