このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
children
クラス: slreq.Reference
名前空間: slreq
子参照の検索
構文
childRefs = children(ref)
説明
は、childRefs
= children(ref
)slreq.Reference
オブジェクト ref
の子参照要件 childRefs
を返します。
入力引数
出力引数
例
子参照の検索
% Load a requirement set file and find referenced requirements rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx'); allRefs = find(rs, 'Type', 'Reference') allRefs = 1×32 Reference array with properties: Keywords Artifact Id Summary Description SID Domain SynchronizedOn ModifiedOn ref1 = allRefs(1); % Find the children of ref1 childRef = children(ref1) childRef = Reference with properties: Keywords: [0×0 char] Artifact: 'Req_doc.docx' Id: 'R1.1' Summary: 'References' Description: '' SID: 2 Domain: 'linktype_rmi_word' SynchronizedOn: 26-Jul-2015 15:45:22 ModifiedOn: 27-Jul-2015 12:00:13
ヒント
要件セット内の最上位項目を取得するには、
slreq.ReqSet.children
を使用します。要件の子要件を取得するには、slreq.Requirement.children
を使用します。正当化の子正当化を取得するには、slreq.Justification.children
を使用します。
バージョン履歴
R2018a で導入