Класс: slreq. Ссылка
Пакет: slreq
Удалить ссылочные требования
count = remove(topRef)
удаляет все дочерние ссылочные требования в узле Импорт count = remove(topRef)topRef а также сам узел импорта. Функция возвращает количество удаленных ссылочных требований.
% Load a requirement set file rs = slreq.load('C:\MATLAB\My_Requirement_Set_1.slreqx'); % Find all referenced requirements in the requirement set allRefs = find(rs, 'Type', 'Reference') allRefs = 1×46 Reference array with properties: Id CustomId Artifact ArtifactId Domain UpdatedOn CreatedOn CreatedBy ModifiedBy IsLocked Summary Description Rationale Keywords Type SID FileRevision ModifiedOn Dirty Comments % Remove the top Import node and child referenced requirements under it count = remove(allRefs(1)) count = 46