promote
类: slreq.Requirement
命名空间: slreq
提升需求
语法
promote(req)
说明
promote(
将 req
)slreq.Requirement
对象 req
在层次结构中提升一级。
输入参数
示例
查找具有匹配属性值的需求
% 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 中推出