Main Content

Stateflow Transitions

Since R2022b

Metric ID

slcomp.StateflowTransitions

Description

For a given unit or component, this metric determines the number of Stateflow® transitions in each Stateflow:

  • Chart

  • Atomic subchart

  • Atomic box in a subchart

  • Linked atomic subchart

  • State Transition Table

  • Truth Table

Supported Artifacts

You can collect this metric for:

To control what the dashboard classifies as a unit or component, see Categorize Models in Hierarchy as Components or Units.

Computation Details

This metric:

  • Does not analyze nested atomic subcharts or nested atomic boxes in subcharts.

  • Includes the default transition.

  • Includes unconnected transitions.

  • Ignores commented transitions.

Collection

To collect data for this metric, use getMetrics with the metric identifier slcomp.StateflowTransitions.

Results

For this metric, instances of metric.Result return Value as the number of Stateflow transitions in the charts in a unit or component.

See Also

Related Topics