Main Content

linkSet

Class:slreq.Link
Package:slreq

Return parent link set

Syntax

lks = linkSet(myLink)

Description

lks= linkSet(myLink)returns the parent link setlksto which the linkmyLinkbelongs.

Input Arguments

expand all

Link, specified as anslreq.Linkobject.

Output Arguments

expand all

Parent link set of the linkmyLink, returned as anslreq.LinkSetobject.

Examples

Query Link Set Information

% Load a requirement set file and select one requirementrs = slreq.load('C:\MATLAB\My_Req_Set.slreqx'); allReqs = find(rs,'Type','Requirement'); req = allReqs(1);% Find the incoming links that belong to reqallInLinks = inLinks(req);% Query link set informationmyParentLinkSet = linkSet(allInLinks) myParentLinkSet = LinkSetwithproperties:Description:''Filename:'model_controller.slmx'Artifact:'model_controller.slx'Domain:'linktype_rmi_simulink'Revision: 4 Dirty: 0

Version History

Introduced in R2018a