Drawing a state Љ Do not include spaces, “My House” is not valid. Use “MyHouse.” Љ Must be unique among sibling states. Љ Should not be the same as the names of any events or classes in the model. Features of states The Features window allows you to add and change the features for a state. A state has the following General tab features: Љ Name specifies the name of the state. Љ L specifies the label for the element, if any. For information on creating labels, see Descriptive labels for elements . Љ Stereotype specifies the stereotype of the state, if any. They are enclosed in guillemets, for example «s1» and enable you to tag classes for documentation purposes.
For information on creating stereotypes, see Stereotypes . Note: The COM stereotypes are constructive; that is, they affect code generation. Action on entry The Action on Entry specifies the action that should be executed whenever the system enters this state, regardless of how the system arrived here. If the action on entry value is overridden, the Overridden check box is checked. The Overridden check box is available in the Features windows for textual information in statecharts (state entry and exit actions, and guards and actions for transitions and static reactions).
By enabling or disabling this check box, you can easily override and unoverride statechart inheritance without actually changing the model. As you toggle the check box on and off, you can view the inherited information in each of the window fields, and can decide whether to apply the information or revert back to the currently overridden information. For more information, see Overriding textual information . Action on exit The Action on Exit specifies the action that should be executed whenever the system exits this state, regardless of how the system exits. If the action on entry value is overridden, the Overridden check box is checked. Rational Rhapsody 729