Class: slreq.Reference
Package: slreq
Add referenced requirements
refNew = add(rs, 'Artifact',FileName,'PropertyName',PropertyValue)
refChild = add(ref,'Artifact',FileName,'PropertyName',PropertyValue)
adds a referenced requirement refNew
= add(rs
, 'Artifact'
,FileName
,'PropertyName'
,PropertyValue
)refNew
to a requirements set
rs
which references requirements from the external document
specified by FileName
with properties and custom attributes
specified by PropertyName
and
PropertyValue
.
adds a referenced child requirement refChild
= add(ref
,'Artifact'
,FileName
,'PropertyName'
,PropertyValue
)refChild
to a referenced
requirement ref
which references requirements from the external
document specified by FileName
with properties and custom
attributes specified by PropertyName
and
PropertyValue
.
% Load a requirement set file rs = slreq.load('C:\MATLAB\My_Requirement_Set_1.slreqx'); % The parent external document for rs is Req_doc.docx % Add a top-level referenced requirement to rs newRef1 = add(rs, 'Artifact', 'crs_req.docx', 'Id', '5.0', 'Summary', ... 'Additional Requirement'); % Add a child referenced requirement to newRef1 newRef2 = add(newRef1, 'Artifact', 'crs_req.docx', 'Id', '5.1', 'Summary', ... 'Additional Child Requirement');