Stateflow States
Metric ID
slcomp.StateflowStates
Description
For a given unit or component, this metric determines the number of Stateflow® states 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 Units and Components. 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.StateflowStates.
Results
For this metric, instances of metric.Result return
                Value as the number of Stateflow states in the charts in a unit or component.