Main Content


Class: slreq.Reference
Package: slreq

Get outgoing links for referenced requirements


myLinks = outLinks(ref)


myLinks = outLinks(ref) returns the outgoing links for the referenced requirement ref.

Input Arguments

expand all

Referenced requirement, specified as a slreq.Reference object.

Output Arguments

expand all

Outgoing links for the requirement, returned as an slreq.Link array.


expand all

This example shows how to get incoming and outgoing links for referenced requirements.

Open the Requirements Definition for a Cruise Control Model project. Load the crs_req requirement set.

rs = slreq.load("crs_req");

Find the requirement with the index 2.1.2.

ref1 = find(rs,Index="2.1.2");

Get the incoming links for the requirement.

myInLinks = inLinks(ref1);

Find the requirement with the index 3.1.

ref2 = find(rs,Index="3.1");

Get the outgoing links for the requirement.

myOutLinks = outLinks(ref2);


Alternative Functionality


You can also use the Requirements Editor to view outgoing links. Select a referenced requirement. In the right pane, under Links, the outgoing links icon indicates outgoing links.

Version History

Introduced in R2017b