Main Content

本页采用了机器翻译。点击此处可查看英文原文。

getChildren

检索 Requirements Table模块中的子需求和假设

自 R2022a 起

说明

示例

children = getChildren(row) 返回 row 指定的行的子需求或假设。

示例

全部折叠

从名为 myModel 的模型中检索 RequirementsTable 对象。

table = slreq.modeling.find("myModel");

将顶级需求作为 RequirementRow 对象数组进行检索。

row = getRequirementRows(table);

RequirementRow 对象数组的形式检索第一个需求的子需求。

children = getChildren(row(1));

您可以通过在子行上调用 getChildren 来找到子行的子行。

输入参数

全部折叠

Requirements Table模块中的需求或假设,指定为 RequirementRowAssumptionRow 对象。要检索行,请使用 getRequirementRowsgetAssumptionRows

输出参量

全部折叠

子需求或假设,指定为 RequirementRowAssumptionRow 对象的数组。有关 Requirements Table 块中需求层次结构的更多信息,请参阅 在 Requirements Table 模块中建立层次结构

版本历史记录

在 R2022a 中推出