Main Content

reqSet

Class: slreq.Reference
Namespace: slreq

Return parent requirement set

Syntax

rsout = reqSet(ref)

Description

rsout = reqSet(ref) returns the parent requirement 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 requirement set of the referenced requirement ref, returned as an slreq.ReqSet object.

Examples

Query Requirement Set Information

% Load a new requirement 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 requirement 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: {}

Version History

Introduced in R2018a