slreq.inLinks
Get incoming links for requirement or other linkable item
Syntax
Description
Examples
Determine Incoming and Outgoing Links
This example shows how to determine the incoming link for a requirement and outgoing link for a model object.
Load the reqs_validation_property_proving_original_model
model and the original_thrust_reverser_requirements
requirement set.
load_system("reqs_validation_property_proving_original_model"); rqset = slreq.load("original_thrust_reverser_requirements.slreqx");
Get a handle to requirement with the index 11
in the requirement set.
req = slreq.find(Type="Requirement",Index=11);
Get the incoming links for the requirement.
inLinks = slreq.inLinks(req);
Get the link source for the incoming link.
lkSrc = source(inLinks);
Convert the link source from a structure to a model object.
mo = slreq.structToObj(lkSrc);
Get the outgoing links for the model object.
outLinks = slreq.outLinks(mo);
Input Arguments
node
— Linkable item to get incoming links for
struct
A linkable item that may have incoming requirements links. Common examples include a
Requirement
or Reference
. Can be the output of find
.
Example: Requirement with properties
Data Types: struct
Output Arguments
ks
— Link(s) incoming to node
Link
or Link
array
A Link
or Link
array incoming to the linkable item.
Version History
Introduced in R2017b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)