Main Content

Stateflow Transitions Distribution

Metric ID

slcomp.TransitionsDistribution

Description

This metric determines the distribution of the number of Stateflow® transitions across the charts in a unit or component.

For information on how the number of Stateflow transitions is calculated, see Stateflow Transitions.

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.TransitionsDistribution.

Results

For this metric, instances of metric.Result return Value as a distribution structure that contains these fields:

  • BinCounts — The number of charts in each bin, returned as a vector.

  • BinEdges — Bin edges for the number of Stateflow transitions, returned as a vector. BinEdges(1) is the left edge of the first bin and BinEdges(end) is the right edge of the last bin. The length of BinEdges is one more than the length of BinCounts.

The bins in this metric result correspond to the bins in the Transitions row and Distribution column in the Stateflow Architecture section.

See Also

Related Topics