MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看最新英文版本。
获取与 OSLC 需求资源对象关联的导入引用需求
自 R2021a 起
ref = getSLRequirements(reqResource)
ref = getSLRequirements(reqResource) 返回与 OSLC 需求或需求集合资源 reqResource 相关的导入的引用需求。
ref
reqResource
示例
全部折叠
此示例显示如何获取从 IBM® DOORS® Next 导入的与 DOORS Next 中同一工程中的 OSLC 需求资源相关联的引用需求。
从 IBM DOORS Next 中导入需求。有关详细信息,请参阅从 IBM DOORS Next 导入需求。
按照 为需求管理域创建和配置 OSLC 客户端 中的描述创建并配置 OSLC 客户端 myClient。设置服务提供方和配置上下文时,使用与导入需求时相同的设置。
myClient
为需求资源类型创建一个创建工厂。向服务提供方查询需求。向服务提供者提交可用的需求资源的查询请求。
myCreationFactory = getCreationFactory(myClient,'Requirement'); reqs = queryRequirements(myQueryCapability)
reqs = 1×30 Requirement array with properties: ResourceUrl Dirty IsFetched Title Identifier
将其中一个需求分配给变量 myReq。从服务提供方处检索需求资源的完整资源数据。
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'
oslc.rm.Requirement
oslc.rm.RequirementCollection
OSLC 需求或需求集合资源对象,指定为 oslc.rm.Requirement 或 oslc.rm.RequirementCollection 对象。
slreq.Reference
引用的需求,作为 slreq.Reference 对象返回。
在 R2021a 中推出
oslc.Client | oslc.rm.Requirement | oslc.rm.RequirementCollection | slreq.Reference | getLinks | getRequirementLinks
oslc.Client
getLinks
getRequirementLinks
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处