About this task
Use the Features window
to add and change the features for a state.
- Name specifies the name of the state.
- L specifies the label for the element, if
any.
- 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.
- To select from a list of current stereotypes in
the project, click the Select Stereotype button
.
- To sort the order of the selected stereotypes,
click the Change Stereotype Order button
. Note: The COM stereotypes are constructive;
that is, they affect code generation.
- Action on entry specifies the action that is 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 selected. The Overridden check box is
available in the Features windows for textual information in statechart
(state entry and exit actions, and guards and actions for transitions
and static reactions). By selecting or clearing this check box, you
can easily override and unoverride statechart inheritance without
actually changing the model. As you toggle the check box, you can
view the inherited information in each of the window fields, and can
decide whether to apply the information or returns to the currently
overridden information. For more information, see Overriding statechart textual information.
- Action on exit specifies the action that is 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 selected.
- Reaction in State specifies the trigger, guard, and actions
identified in a transition label. If the trigger occurs and the guard
is true, the action is executed. Use the appropriate window button:
- New creates a reaction in state. If you
select this option, the Reaction Features window opens so you can
specify the Trigger, Guard, and Action for the new reaction.
- Edit modifies an existing reaction.
- Delete deletes a reaction.
Note: If
you specify action on entry or exit behavior for a state, this icon
is added to the state display:
