帮助中心帮助中心
本页采用了机器翻译。点击此处可查看英文原文。
类: slreq.Reference 命名空间: slreq
从外部工件获取需求类型名称
自 R2023a 起
name = getExternalTypeName(ref)
示例
name = getExternalTypeName(ref) 从导入引用需求 ref 的外部工件返回需求类型名称。使用此方法获取从 IBM® DOORS® Next 或 ReqIF™ 文件导入的需求的外部需求类型名称。
name
ref
全部展开
slreq.Reference
引用的需求,指定为 slreq.Reference 对象。
外部需求类型名称,以字符向量形式返回。
此示例显示如何获取从 ReqIF® 文件导入的引用需求的需求类型名称。
加载从文件 mySpec.reqif 导入的 mySpec需求集。
mySpec.reqif
mySpec
rs = slreq.load("mySpec.slreqx");
获取导入节点的句柄。
topRef = children(rs);
获取导入节点的子引用需求。
refs = children(topRef);
获取第一个引用需求的句柄。
ref = refs(1);
获取引用需求的外部类型名称。
name = 'Functional Requirement'
在 R2023a 中推出
getAttribute
您点击的链接对应于以下 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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office