getSLRequirements
说明
返回与 OSLC 需求或需求集合资源 ref
= getSLRequirements(reqResource
)reqResource
相关的导入的引用需求。
示例
获取 OSLC 需求的导入引用需求
此示例显示如何获取从 IBM® DOORS® Next 导入的与 DOORS Next 中同一工程中的 OSLC 需求资源相关联的引用需求。
从 IBM DOORS Next 中导入需求。有关更多信息,请参阅 从 IBM DOORS Next 导入需求。
按照 为需求管理域创建并配置 OSLC 客户端 中的描述创建并配置 OSLC 客户端 myClient
。设置服务提供商和配置上下文时,使用与导入需求时相同的设置。
为需求资源类型创建一个创建工厂。向服务提供商查询需求。向服务提供者提交可用的需求资源的查询请求。
myCreationFactory = getCreationFactory(myClient,'Requirement');
reqs = queryRequirements(myQueryCapability)
reqs = 1×30 Requirement array with properties: ResourceUrl Dirty IsFetched Title Identifier
将其中一个需求分配给变量 myReq
。从服务提供商处检索需求资源的完整资源数据。
myReq = reqs(1); status = fetch(myReq,myClient)
status = StatusCode enumeration OK
获取与 myReq
关联的导入的引用需求。
ref = getSLRequirements(myReq)
ref = Reference with properties: Id: '431' CustomId: '431' Artifact: 'https://localhost:9443/rm/_BCoGwgJZEeuFW5Ss3RBk7w' ArtifactId: 'https://localhost:9443/rm/_BDSOEwJZEeuFW5Ss3RBk7w' Domain: 'OSLC' UpdatedOn: 17-Feb-2021 13:54:13 CreatedOn: 29-Sep-2020 09:38:16 CreatedBy: '' ModifiedBy: '' IsLocked: 1 Summary: 'System Hazards' Description: 'System Hazards' Rationale: '' Keywords: {} Type: 'Functional' SID: 431 FileRevision: 1 ModifiedOn: 29-Sep-2020 09:38:16 Dirty: 0 Comments: [0×0 struct] Index: '1'
输入参数
reqResource
— OSLC 需求资源
oslc.rm.Requirement
对象 | oslc.rm.RequirementCollection
对象
OSLC 需求或需求集合资源对象,指定为 oslc.rm.Requirement
或 oslc.rm.RequirementCollection
对象。
输出参量
ref
— 引用的需求
slreq.Reference
引用的需求,作为slreq.Reference
对象返回。
版本历史记录
在 R2021a 中推出
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)