メインコンテンツ

Requirements Traceability Links

R2026b
Since R2026b

Metric ID

modeldesign.TraceabilityAnalysis[slcomp.Links]

Description

This metric returns the number of requirement links for each unit in your project, grouped by resolution status and direction. Use this metric to assess the overall link coverage and identify units with unresolved or missing links.

Supported Artifacts

This metric collects metric results for Units in the project. To control what the dashboard classifies as a unit, see Categorize Models in Hierarchy as Components or Units.

Collection

To collect data for this metric, execute the metric engine with the metric ID.

metric_engine = metric.Engine;
results = execute(metric_engine,"modeldesign.TraceabilityAnalysis[slcomp.Links]")

View the metric result values for a specific unit.

results(1).Value
results(1).ScopeAlias

To collect all traceability metrics in a single call, use empty bracket syntax. Use the MetricID property to distinguish between results.

results = execute(metric_engine,"modeldesign.TraceabilityAnalysis[]")

Results

The metric returns an array of metric.Result objects, one for each unit in the project. Use the Value property of the metric result object to view the metric result values. Use the ScopeId and ScopeAlias properties to identify which unit the result belongs to.

The ScopeAlias property returns the name of the unit.

The Value property returns a structure with these fields:

  • Resolved — Number of links that are resolved

  • Unresolved — Number of links that are unresolved (broken links)

  • FromDesign — Number of links originating from design elements

  • ToDesign — Number of links targeting design elements

  • Total — Total number of requirement links for the unit

See Also

|

Topics