Object creation is represented by sending a creation event to the object's class. The event parameters make it possible to initialize the new object, which then starts to exist with the initial state described within the class state machine. The following example shows a creation transition that registers a plane. In the case of a crash, the plane stops existing.
The creation transition brings the object from its initial state to its first operating state. Reaching the final state implies that the object disappears.
Object deletion is effected when the control flow of the state machine reaches a non-nested final state. Ending up in a nested final state implies going back up to the encompassing state, instead of ending the lifecycle of the object.
© 1997 Editions, Eyrolles, Paris, France . All rights reserved.