Класс: slreq.Requirement
Пакет: slreq
Установите пользовательские атрибуты требования
setAttribute(req, propertyName, propertyValue)
setAttribute(
устанавливает свойство требования.req
, propertyName
, propertyValue
)
% Load a requirement set file and get the handle to one requirement rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx'); req1 = find(rs, 'Type', 'Requirement', 'ID', 'R2.1'); % Set the Priority (custom attribute) of req1 setAttribute(req1, 'Priority', 'Low'); req1 req1 = Requirement with properties: Id: 'R2.1' Summary: 'Controller Requirement' Keywords: [0×0 char] Description: '' Rationale: '' SID: 21 CreatedBy: 'Jane Doe' CreatedOn: 27-Feb-2014 10:15:38 ModifiedBy: 'John Doe' ModifiedOn: 02-Aug-2017 13:49:40 FileRevision: 43 Dirty: 1 Comments: [0×0 struct] Priority: Low