Main Content

destination

Class: slreq.Link
Package: slreq

Get link destination

Description

example

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

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

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

  • You can use slreq.structToObj to convert the link destination structure to an object.

Version History

Introduced in R2018a