Stateflow Decision Distribution
Metric ID
slcomp.StateflowDecisionsDistribution
Description
This metric determines the distribution of the number of Stateflow® decisions across the charts in a unit or component.
For information on how the number of Stateflow decisions is calculated, see Stateflow Decision Count.
Supported Artifacts
You can collect this metric for Units and Components. To control what the dashboard classifies as a unit or component, see Categorize Models in Hierarchy as Components or Units.
Collection
To collect data for this metric, use getMetrics with the metric
            identifier
            slcomp.StateflowDecisionsDistribution.
metric_engine = metric.Engine; execute(metric_engine,"slcomp.StateflowDecisionsDistribution"); results = getMetrics(metric_engine,"slcomp.StateflowDecisionsDistribution")
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 decisions, 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- BinEdgesis one more than the length of- BinCounts.
The bins in this metric result correspond to the bins in the Stateflow row and Distribution column in the Design Cyclomatic Complexity Breakdown section.