Main Content

outLinks

Class: slreq.Requirement
Namespace: slreq

Get outgoing links for requirements

Syntax

myLinks = outLinks(req)

Description

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

Input Arguments

expand all

Requirement, specified as an slreq.Requirement object.

Output Arguments

expand all

Outgoing 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 outgoing links for a referenced requirement, use the outLinks method of slreq.Reference. To get the outgoing links for a justification, use the outLinks method of slreq.Justification.

Alternative Functionality

App

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

Version History

Introduced in R2017b