Main Content

db_0129: Stateflow transition appearance

Sub ID Recommendations

  • NA-MAAB — a, b, c, d, e

  • JMAAB — a, b, c, d, e

MATLAB Versions

All

Rule

Sub ID a

Transition lines shall not cross over one another.

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

Sub ID b

Transition lines shall not overlap other transition lines.

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

Sub ID c

Transition lines shall not cross over states.

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

Sub ID d

Transition lines shall be drawn vertically or horizontally.

Diagonal lines can be used for flow charts.

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

Sub ID e

Unnecessary connective junctions shall not be used.

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

Rationale

Sub ID a:

  • Difficult to understand the relationship between states when transition lines cross.

Sub ID b:

  • Difficult to understand the relationship between states when transition lines overlap.

Sub ID c:

  • Difficult to understand the relationship between states when transition lines cross over states.

Sub ID d:

  • Consistent application of transition lines improves readability.

Sub ID e:

  • Transitions can be difficult to understand when unnecessary connective junctions are used.

Verification

Model Advisor check: Check for Stateflow transition appearance (Simulink Check)

Last Changed

R2020a

See Also

Introduced in R2020a