Package: slreq
Superclasses:
Work with slreq.Justification
objects
Use slreq.Justification
objects to work with requirements that you
exclude from the implementation and verification status metrics roll-up for your requirements
sets. Justify a requirement by creating an outgoing link from the
slreq.Justification
object to the requirement and setting the link type
to Implement or Verify.
finds and returns an jst
= slreq.find(rs, 'Type', 'Justification', 'PropertyName'
, PropertyValue
)slreq.Justification
object jst
in
the requirements set rs
with additional properties specified by
PropertyName
and PropertyValue
.
adds a child justification jst
= slreq.add(jt, 'PropertyName'
, PropertyValue
)jst
to the parent justification
jt
with additional properties specified by
PropertyName
and PropertyValue
.
add | Add child justification |
children | Find children justifications |
demote | Demote justifications |
find | Find justifications |
getAttribute | Get justification attributes |
isHierarchical | Check if justification is hierarchical |
parent | Find parent item of justification |
promote | Promote justifications |
remove | Remove justification items |
reqSet | Return parent requirement set |
setAttribute | Set justification attributes |
setHierarchical | Change hierarchical justification status |
% Find justification objects in a requirement set Project_reqs myJustifications = find(Project_reqs, 'Type', 'Justification') myJustifications = 1×2 Justification array with properties: Id Summary Description Keywords Rationale CreatedOn CreatedBy ModifiedBy SID FileRevision ModifiedOn Dirty Comments % Add a child justification to the first justification in the array myChildJustification = add(myJustifications(1), 'Id', '2.1', ... 'Summary', 'New Child Justification') myChildJustification = Justification with properties: Id: '2.1' Summary: 'New Child Justification' Description: '' Keywords: [0×0 char] Rationale: '' CreatedOn: 25-Aug-2017 14:37:29 CreatedBy: 'Jane Doe' ModifiedBy: 'John Doe' SID: 73 FileRevision: 1 ModifiedOn: 26-Aug-2017 17:30:20 Dirty: 0 Comments: [0×0 struct]