Stateflow    

Setting Smart Behavior in Transitions

Transitions with smart behavior, that is, smart transitions, allow their ends to slide around the surfaces of Stateflow objects. This allows transitions to maintain their shapes and uniqueness while you rearrange chart objects. Without this ability, rearranging a Stateflow chart full of states and junctions attached by transitions can soon become a very arduous task. Now, objects move but stay attached in cleaner and more efficient ways. The result is a chart that is cleaner and easier to rearrange.

Transitions are automatically created with smart behavior, on the assumption that this behavior is desirable in most circumstances. You can disable or enable smart behavior in existing transitions with the following procedure:

  1. Right-click a transition.
  1. On the resulting menu, observe the selection titled Smart. If a check mark appears in front of Smart, the transition has smart behavior.

  1. If Smart is not checked, select it to enable smart behavior.
  1. To disable smart transition behavior, select Smart if it is already checked.

See the following sections for a comparison of behavior between smart and nonsmart transitions:


  Creating Default Transitions What Smart Transitions Do