Main Content

本页采用了机器翻译。点击此处可查看英文原文。

setHierarchical

类: slreq.Justification
命名空间: slreq

更改层次申述状态

语法

setHierarchical(jt, tf)

说明

setHierarchical(jt, tf) 按照布尔值 tf 的指定更改 slreq.Justification 对象 jt 的层次结构申述状态。

输入参数

全部展开

申述,指定为 slreq.Justification 对象。

slreq.Justification 对象的层次结构申述状态,指定为布尔值。

示例

更改层次申述状态

% 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);

版本历史记录

在 R2018b 中推出

另请参阅

|