Main Content

Check position of comments in transition labels

Check ID: mathworks.jmaab.jc_0771

Guideline: jc_0771: Comment position in transition labels

Description

Identifies comments in transition labels that are not positioned uniformly.

This check requires Simulink® Check™ and Stateflow® licenses.

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_0771_a1 is selected by default.

Results and Recommended Actions

Guideline Sub IDConditionRecommended Action
jc_0771_a1: Comments in transition labels must be uniformly positioned on top.One or more comments in transition labels are not positioned at the top.Comments in transition labels must be positioned above transition conditions, condition actions, transition actions, and Stateflow events.
jc_0771_a2: Comments in transition labels must be uniformly positioned at the bottom.One or more comments in transition labels are not positioned at the bottom.Comments in transition labels must be positioned below transition conditions, condition actions, transition actions, and Stateflow events.

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.