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 起)
slreq.matrix.ConfigurationTraceability matrix configuration (自 R2024a 起)
slreq.matrix.FilterFilter for traceability matrix (自 R2024a 起)

方法

setDestination Set requirement link destination
setSource Set requirement link source

函数

全部展开

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

主题

创建链接

跟踪生成的代码的需求

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

与第三方应用程序链接