Main Content

destination

Class: slreq.Link
Namespace: slreq

Get link destination

Description

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

example

Input Arguments

expand all

Link, specified as an slreq.Link object.

Output Arguments

expand all

Link destination, returned as a MATLAB® structure that contains these fields:

  • domain

  • artifact

  • id

  • summary

  • reqSet

  • sid

  • embeddedReq

Examples

expand all

This example shows how to get a link destination from a link object.

Load the crs_req requirement files, which contain links for a cruise control system.

slreq.load("crs_req");
slreq.load("crs_req_func_spec");

Find the crs_req link set.

myLinkSet = slreq.find(Type="LinkSet",Description="crs_req");

Get the links from the link set.

myLinks = getLinks(myLinkSet);

Get the link destination structure for one of the links.

dest = destination(myLinks(1));

Convert the link destination structure to an object.

destObj = slreq.structToObj(dest);

Tips

Version History

Introduced in R2018a