RequirementsTable
说明
使用RequirementsTable
对象来配置Requirements Table块。
创建对象
有几种方法可以创建 RequirementsTable
对象:
使用
slreq.modeling.create
函数创建一个包含Requirements Table模块的新Simulink®模型。使用
add_block
(Simulink) 将 Requirements Table模块添加到现有模型并使用slreq.modeling.find
函数检索对象。
属性
对象函数
addRequirementRow | 将需求添加到 Requirements Table模块 |
addAssumptionRow | 将假设添加到 Requirements Table模块 |
addSymbol | 将数据添加到 Requirements Table 模块 |
clear | 清除 Requirements Table模块中的行 |
getAssumptionRows | 检索 Requirements Table模块中的假设 |
getRequirementRows | 检索 Requirements Table模块中的需求 |
findSymbol | 检索 Requirements Table模块中的数据 |
hideAssumptionColumn | 隐藏假设选项卡中的预条件列 |
hideRequirementColumn | 隐藏“需求”选项卡中的列 |
removeRow | 删除 Requirements Table模块行 |
showAssumptionColumn | 在“假设”选项卡中显示“预条件”列 |
showRequirementColumn | 在“需求”选项卡中显示列 |