Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

需求可追溯性

将需求链接到设计、代码和测试,指定关系,添加标记,查看模型和代码的可追溯性,检查一致性

创建需求链接,以建立对模型元素、测试用例、测试框架、MATLAB® 代码行、数据字典、Stateflow® 元素、System Composer™ 架构模型和其他需求的可追溯性。指定链接类型以传达关系的性质,例如用于实现功能需求的模型元素或用于验证测试设定需求的测试框架。创建自定义需求和链接类型以扩展默认链接功能。

使用需求编辑器创建和查看链接,以及使用需求透视查看模型上下文中的需求。

App

需求编辑器Create and edit requirements

工具

配置文件编辑器Create and manage profiles with stereotypes and properties

slreq.LinkSet Work with link sets
slreq.LinkTraceable link

对象

slreq.TextRangeLine range (自 R2022b 起)

方法

setDestination Set requirement link destination
setSource Set requirement link source

函数

slreq.clearClear requirements and links from memory
slreq.closeRequirementsManagerClose Requirements Manager app in model (自 R2021a 起)
slreq.cmConfigureVersionSet version of linked requirements documents (自 R2019b 起)
slreq.cmGetVersionGet configured version of linked requirements documents (自 R2019b 起)
slreq.createLinkCreate traceable links
slreq.createTextRangeCreate line ranges (自 R2022b 起)
slreq.findFind requirement, reference, and link set artifacts
slreq.getDependentLinkSetsRetrieve link sets with incoming links to requirement set (自 R2023a 起)
slreq.getIncomingLinkTypeLabelRetrieve incoming link type label (自 R2023a 起)
slreq.getOutgoingLinkTypeLabelRetrieve outgoing link type label (自 R2023a 起)
slreq.generateTraceabilityDiagramCreate a traceability diagram (自 R2021b 起)
slreq.generateTraceabilityMatrixCreate traceability matrix (自 R2021a 起)
slreq.getExternalURLGet navigation URL for link source or destination, requirement, test or Simulink model element (自 R2021a 起)
slreq.getTextRangeGet line ranges (自 R2022b 起)
slreq.getTraceabilityMatrixOptionsCreate options structure for traceability matrix (自 R2021a 起)
slreq.inLinksGet incoming links for requirement or other linkable item
slreq.loadLoad requirement set or link set
slreq.openRequirementsManagerOpen Requirements Manager app in model (自 R2021a 起)
slreq.outLinksGet outgoing links for a block or other linkable item
slreq.refreshCustomizationsRegister Requirements Toolbox customizations (自 R2022a 起)
slreq.showNavigate to link source or destination (自 R2020a 起)
slreq.structToObjConvert link source or destination information from structure to model object type

主题

创建链接

跟踪生成的代码的需求

对链接进行可视化、管理和故障排除

与第三方应用程序链接