image011.png

Figure 9– Example of a StateMachineType using containment

Figure 9gives an example of an ObjectTypenot only representing a StateMachinebut also having some other functionality. The ObjectType"MyObjectType" has an Object"MyComponent" representing this other functionality. But it also contains a StateMachine"MyStateMachine" of the type "MyStateMachineType". Objectsof "MyObjectType" also contain such an Objectrepresenting the StateMachine and a Variablecontaining the current state of the StateMachine, as shown in the Figure.