Main Content

linkSet

Class: slreq.Link
Package: slreq

Return parent link set

Syntax

lks = linkSet(myLink)

Description

lks = linkSet(myLink) returns the parent link set lks to which the link myLink belongs.

Input Arguments

expand all

Link, specified as an slreq.Link object.

Output Arguments

expand all

Parent link set of the link myLink, returned as an slreq.LinkSet object.

Examples

Query Link Set Information

% Load a requirement set file and select one requirement
rs = slreq.load('C:\MATLAB\My_Req_Set.slreqx');
allReqs = find(rs, 'Type', 'Requirement');
req = allReqs(1);

% Find the incoming links that belong to req
allInLinks = inLinks(req);

% Query link set information
myParentLinkSet = linkSet(allInLinks)

myParentLinkSet = 

  LinkSet with properties:

    Description: ''
       Filename: 'model_controller.slmx'
       Artifact: 'model_controller.slx'
         Domain: 'linktype_rmi_simulink'
       Revision: 4
          Dirty: 0

Version History

Introduced in R2018a