Main Content

Check terminal junctions in Stateflow

Check ID: mathworks.jmaab.jc_0775

Guideline: jc_0775: Terminating junctions in flow charts

Description

Identifies the usage of terminal junctions in flow charts.

This check requires a Simulink® Check™ license.

Check Parameterization

This check contains sub-checks that correspond to the sub IDs specified in the MAB and JMAAB modeling guidelines. You can use the Model Advisor Configuration Editor to specify which sub IDs (one or multiple) to execute.

For reference, the MAB guideline sub-ID(s) that are recommended for use by the NA-MAAB and JMAAB modeling standards organizations are:

  • NA-MAAB — a1/a2

  • JMAAB — a1/a2

Note

Sub-check jc_0775_a1 is selected by default.

Results and Recommended Actions

Guideline Sub IDConditionRecommended Action
jc_0775_a1: Check for usage of only one terminal junction.One or more Stateflow containers have more than one terminal junction.Consider using only one terminal junction.
jc_0775_a2: Check for usage of one terminal junction with one unconditional transition as input.One or more Stateflow containers have either more than one terminal junction or a terminal junction without one unconditional transition.Consider using only one terminal junction with one unconditional transition as input.

Capabilities and Limitations

  • Runs on library models.

  • Supports exclusions of blocks or charts.

  • Analyzes content of library-linked blocks. By default, the input parameter Follow links is set to on.

  • Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to graphical.