Main Content

reqSet

Class: slreq.Reference
Package: slreq

Return parent requirements set

Syntax

rsout = reqSet(ref)

Description

rsout = reqSet(ref) returns the parent requirements set rsout to which the referenced requirement ref belongs.

Input Arguments

expand all

Referenced requirement, specified as a slreq.Reference object.

Output Arguments

expand all

The parent requirements set of the referenced requirement ref, returned as an slreq.ReqSet object.

Examples

Query Requirements Set Information

% Load a new requirements set file and select one referenced requirement
rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx');
allRefs = find(rs,'Type','Reference');
ref = allRefs(1);

% Query which requirements set ref belongs to
reqSet(ref)

ans = 

  ReqSet with properties:

             Description: ''
                    Name: 'My_Requirements_Set_1'
                Filename: 'C:\MATLAB\My_Requirements_Set_1.slreqx'
                Revision: 65
                   Dirty: 0
    CustomAttributeNames: {}

Introduced in R2018a