Main Content

inLinks

Class: slreq.Requirement
Namespace: slreq

Get incoming links for requirements

Syntax

myLinks = inLinks(req)

Description

myLinks = inLinks(req) returns the incoming links for the requirement req.

Input Arguments

expand all

Requirement, specified as an slreq.Requirement object.

Output Arguments

expand all

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

Examples

expand all

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

Load the requirement set basicReqSet.

rs = slreq.load("basicReqSet");

Find the first requirement in the requirement set.

req1 = find(rs,Index=1);

Get the incoming links for the requirement.

myInLinks = inLinks(req1);

Find the second requirement in the requirement set.

req2 = find(rs,Index=2);

Get the outgoing links for the requirement.

myOutLinks = outLinks(req2);

Tips

  • To get the incoming links for a referenced requirement, use the inLinks method of slreq.Reference.

Alternative Functionality

App

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

Version History

Introduced in R2017b