Main Content

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

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.

See Also

Related Topics