Rules for statechart connectors

Connectors are always inherited. You cannot modify them or delete them.

The following example illustrates statechart inheritance.

Statechart inheritance - simple On and Off example

As shown, a basic blower has only On and Off modes.

In a dual-speed blower, the On state is refined to include Fast and Slow modes, as shown in the following figure.

Statechart inheritance - more complex example with Fast and Slow modes for On

If you make the On state into an And state, you can add a heat mode, as shown in the following figure.

Statechart inheritance - complext example with Fast and Slow modes, and High Heat and Low Heat for On

Feedback