Stateflow States Distribution
Metric ID
slcomp.StatesDistribution
Description
This metric determines the distribution of the number of Stateflow® states across the charts in a unit or component.
For information on how the number of Stateflow transitions is calculated, see Stateflow States.
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.
Analyzes states, including atomic subcharts in states and Simulink®-based states.
Ignores commented states.
Collection
To collect data for this metric, use getMetrics
with the metric
identifier slcomp.StatesDistribution
.
Results
For this metric, instances of metric.Result
return
Value
as a distribution structure that contains these fields:
BinCounts
— The number of artifacts in each bin, returned as a vector.BinEdges
— Bin edges for the number of Stateflow states, returned as a vector.BinEdges(1)
is the left edge of the first bin andBinEdges(end)
is the right edge of the last bin. The length ofBinEdges
is one more than the length ofBinCounts
.
The bins in this metric result correspond to the bins in the States row and Distribution column in the Stateflow Architecture section.