Statechart Implementation : Statechart Implementation: Generated Functions : Default State Implementation

Default State Implementation

The Default connector is treated as a state. This means that when a state is entered, we spend one step going into the Default.Statechart Implementation and then on the following step, we actually enter the desired state. Note that this is a slight change to the classic Language of Rational Statemate semantics. The motivation behind this change is that, as it is allowed to put a guard on the default transition, it might be that no transition could be taken. This means that the code might otherwise get stuck in a default connector.

In a practical sense, however, this does not represent a significant difference and should be negligible in any practical example.

Note: In specific topologies – when there is no guard on the default transition it is possible to directly enter the default state.Use the Compilation Profile->Setting->Optimization flags.