MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看最新英文版本。
类: slreq.Requirement 命名空间: slreq
查找需求的子需求
childReqs = children(req)
childReqs = children(req) 返回 childReqs 对象 slreq.Requirement 的子需求 req。
childReqs
req
slreq.Requirement
全部展开
需求指定为 slreq.Requirement 对象。
属于需求 req 的子需求,作为 slreq.Requirement 对象返回。
加载需求集文件并添加三个新需求。
rs = slreq.load("C:\MATLAB\My_Requirements_Set_1.slreqx"); req1 = add(rs,"Id","5","Summary","Additional Requirement"); req2 = add(req1,"Id","5.1","Summary","Additional Child Requirement 1"); req3 = add(req1,"Id","5.2","Summary","Additional Child Requirement 2");
找到 req1 的子项。
req1
childReqs = children(req1)
childReqs = 1×2 Requirement array with properties: Id Summary Keywords Description Rationale SID CreatedBy CreatedOn ModifiedBy ModifiedOn FileRevision Comments
要获取需求集的顶级项,请使用 slreq.ReqSet 的 children 方法。要获取引用需求,请使用 slreq.Reference 的 children 方法。要获取某个申述的子申述,请使用 slreq.Justification 的 children 方法。
slreq.ReqSet
children
slreq.Reference
slreq.Justification
在 R2018a 中推出
slreq.Requirement | slreq.ReqSet | parent
parent
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处