slreq.inLinks
获取需求或其他可链接项目的入站链接
说明
示例
确定传入和出向链接
此示例显示如何确定需求的传入链接和模型对象的出向链接。
加载reqs_validation_property_proving_original_model
模型和original_thrust_reverser_requirements
需求集。
load_system("reqs_validation_property_proving_original_model"); rqset = slreq.load("original_thrust_reverser_requirements.slreqx");
获取需求集索引为 11
的需求句柄。
req = slreq.find(Type="Requirement",Index=11);
获取需求的入站链接。
inLinks = slreq.inLinks(req);
获取传入链接的链接源。
lkSrc = source(inLinks);
将链接源从结构体转换为模型对象。
mo = slreq.structToObj(lkSrc);
获取模型对象的出向链接。
outLinks = slreq.outLinks(mo);
输入参数
node
— 可链接项目用于获取传入链接
结构体
可链接项目可能具有传入需求链接。常见的例子包括 Requirement
或 Reference
。可以是 find
的输出。
示例: Requirement with properties
数据类型: struct
版本历史记录
在 R2017b 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 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)