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. Click the Open Live Script button to get copies of the example files.
Load Model and Requirement Set
load_system('reqs_validation_property_proving_original_model'); rqset = slreq.load('original_thrust_reverser_requirements.slreqx');
Get a Requirement from the Set
req = slreq.find('Type','Requirement','Summary','Maximum Throttle Threshold');
Determine Incoming Links for the Requirement
lkIn = slreq.inLinks(req)
lkIn = Link with properties: Type: 'Implement' Description: 'R11: Maximum Throttle Threshold (original_thrust_reverser_requirements#11)' Keywords: {} Rationale: '' CreatedOn: 25-Mar-2019 16:10:06 CreatedBy: 'asriram' ModifiedOn: 25-Mar-2019 16:10:06 ModifiedBy: 'asriram' Revision: 14 SID: 52 Comments: [0x0 struct]
Determine the Incoming Link Source
lkSrc = source(lkIn);
Convert Link Source to Model Object
mo = slreq.structToObj(lkSrc);
Determine Outgoing Link from the Model Object
lkOut = slreq.outLinks(mo)
lkOut = Link with properties: Type: 'Implement' Description: 'R11: Maximum Throttle Threshold (original_thrust_reverser_requirements#11)' Keywords: {} Rationale: '' CreatedOn: 25-Mar-2019 16:10:06 CreatedBy: 'asriram' ModifiedOn: 25-Mar-2019 16:10:06 ModifiedBy: 'asriram' Revision: 14 SID: 52 Comments: [0x0 struct]
Close Files
slreq.clear;
bdclose all;
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
Ouvrir l'exemple
Vous possédez une version modifiée de cet exemple. Souhaitez-vous ouvrir cet exemple avec vos modifications ?
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
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)