メインコンテンツ

promote

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

構文

promote(req)

説明

promote(req) は、slreq.Requirement オブジェクトの req を階層内の 1 つ上のレベルに昇格します。

入力引数

すべて展開する

slreq.Requirement オブジェクトとして指定される要件。

すべて展開する

% Load a requirement set file and add two new requirements 
rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx');
req1 = add(rs, 'Id', '5', 'Summary' , 'Additional Requirement'); 
req2 = add(req1, 'Id', '5.1', 'Summary' , 'Child Requirement');

% Promote req2
promote(req2);

% Find the parent of req2
parentReq = parent(req2);

parentReq = 

  ReqSet with properties:

             Description: ''
                    Name: 'My_Requirements_Set_1'
                Filename: 'C:\MATLAB\My_Requirements_Set_1.slreqx'
                Revision: 6
                   Dirty: 1
    CustomAttributeNames: {}

バージョン履歴

R2018a で導入