Statechart mode

Local termination is implemented in statechart mode for various kinds of states.

Or states

The following local termination rules apply to Or states:

Leaf states

A leaf state is completed after finishing its entry action.

Component states

The following local termination rules apply to component states:

And states

An outgoing null transition from an And state is activated only if all of its components are completed.

IS_COMPLETED() macro

You can use the IS_COMPLETED() macro in a statechart to test whether a state is completed. Completion means that any of the conditions for local termination described in the previous sections are true. The macro works the same for both flat and reusable implementations of statecharts.

The CG::Class::IsCompletedForAllStates property specifies whether the IS_COMPLETED() macro can be used for all kinds of states. The default value of Cleared means that the macro can be used only for states that have a final activity. Checked means that it can be used for all states.


Feedback