Statecharts Refining the hierarchy of reactive classes You can refine the hierarchy of reactive classes without using overrides and unoverrides (without losing any information). For example, suppose you have class C inheriting from class A , as shown in the following OMD. Suppose you want to change the hierarchy so C inherits from B , which in turn inherits from A . Therefore: Љ The statechart that C inherited from A will now be inherited from B ; B will inherit its statechart from A . Љ The inheritance between A and C will be deleted. Љ C will not lose any information, because its inherited elements will reference new GUIds. To make these changes: 1.
Using either the browser or the Diagram Tools , create inheritance between B and A . 2. Create inheritance between C and B . 3. Rational Rhapsody displays a window that informs you that you are adding a level of inheritance, and asks you to confirm the deletion of the inheritance between C and A . Click Yes . 778 User Guide