Main Content

isHierarchical

クラス: slreq.Justification
名前空間: slreq

正当化が階層構造かどうかをチェックする

構文

tf = isHierarchical(jt)

説明

tf = isHierarchical(jt) は、slreq.Justification オブジェクトの jt が正当化の階層構造の一部であるかどうかをチェックし、boolean の tf を返します。

入力引数

すべて展開する

正当化。slreq.Justification オブジェクトとして指定します。

出力引数

すべて展開する

slreq.Justification オブジェクトの正当化の階層構造ステータス。boolean として返されます。

クエリの正当化の階層構造ステータス

% 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

バージョン履歴

R2018b で導入