destination

Class: slreq.Link
Package: slreq

Get link destination artifact

Syntax

dest = destination(myLink)

Description

dest = destination(myLink) returns the destination artifact dest of the link myLink.

Input Arguments

expand all

Link, specified as an slreq.Link object.

Output Arguments

expand all

The link destination artifact, returned as a MATLAB® structure.

Examples

Get Link Destination

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

% Get link destination
myDestination = destination(myLink)

myDestination =  

  struct with fields:

     reqSet: 'My_Req_Set'
     domain: 'linktype_rmi_slreq'
    summary: 'My Requirement'
    details: ''
         id: ''
        sid: 12
Introduced in R2018a