Main Content

slreq.getDependentLinkSets

Retrieve link sets with incoming links to requirement set

Since R2023a

Description

example

myLinkSets = slreq.getDependentLinkSets(reqSetFile) returns the link sets with incoming links from entries in the requirement set file, reqSetFile.

example

myLinkSets = slreq.getDependentLinkSets(rs) returns link sets by using the requirement set object, rs.

Examples

collapse all

Suppose you have a requirement set in the current folder, myReqs.slreqx, and you want to find the link sets that contain incoming links from the entries in the requirement set.

Retrieve the link sets that contain the incoming links.

myLinkSet = slreq.getDependentLinkSets("myReqs.slreqx")
myLinkSet = 

  LinkSet with properties:

             Description: ''
                Filename: 'C:\MATLAB\My_Files\signals~m.slmx'
                Artifact: 'C:\MATLAB\My_Files\signals.m'
                  Domain: 'linktype_rmi_matlab'
                Revision: 1
                   Dirty: 0
    CustomAttributeNames: {}

Suppose you have a requirement set in the current folder, myReqs.slreqx, and you want to find the link sets that contain incoming links from the entries in the requirement set.

Load the requirement set with the slreq.load function.

rs = slreq.load("myReqs.slreqx");

Retrieve the link sets that contain the incoming links.

myLinkSet = slreq.getDependentLinkSets(rs)
myLinkSet = 

  1x2 LinkSet array with properties:
    
    Description
    Filename
    Artifact
    Domain
    Revision
    Dirty
    CustomAttributeNames

Input Arguments

collapse all

Requirement set file, specified as a string scalar or character vector. If the file is not in the current directory, specify the path and the filename.

Data Types: char | string

Requirement set, specified as an slreq.ReqSet object.

Output Arguments

collapse all

Link set array, returned as a slreq.LinkSet object array.

Version History

Introduced in R2023a