Class: slreq.Justification
Package: slreq

Add child justification


childJustification = add(jt, 'PropertyName', PropertyValue)


childJustification = add(jt, 'PropertyName', PropertyValue) adds a child justification childJustification to a justification object jt with additional properties specified by PropertyName and PropertyValue.

Input Arguments

expand all

Justification, specified as an slreq.Justification object.

Output Arguments

expand all

The child justification that was added, returned as an slreq.Justification object.


Add a Child Justification to a Parent Justification

% Load a requirement set file
rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx');

% Add a justification object to the requirement set
just1 = addJustification(rs, 'Id', 'J1', ...
'Summary', 'Non-functional requirement justification');

% Add a child justification to the justification just1
childJust1 = add(just1, 'Id', 'J1.1', ...
'Summary', 'Justification for non-functional requirement')

childJust1 = 

  Justification with properties:

              Id: 'J1.1'
         Summary: 'Justification for non-functional requirement'
     Description: ''
        Keywords: [0×0 char]
       Rationale: ''
       CreatedOn: 25-Aug-2017 11:21:29
       CreatedBy: 'John Doe'
      ModifiedBy: 'Jane Doe'
             SID: 11
    FileRevision: 2
      ModifiedOn: 25-Aug-2017 14:00:29
           Dirty: 0
        Comments: [0×0 struct]

See Also


Introduced in R2018b