State Details

I l @ ve RuBoard

Actions that accompany all state transitions into a state may be placed as an entry action within the state. Likewise, actions that accompany all state transitions out of a state may be placed as exit actions within the state. Behavior that occurs within the state is called an activity. An activity starts when the state is entered and either completes or is interrupted by an outgoing state transition. The behavior may be a simple action or it may be an event sent to another object. As with actions and guards , this behavior typically is mapped to operations on the object. The UML notation for state detailed information is shown in Figure 9-10.

CREATING ENTRY ACTIONS, EXIT ACTIONS, AND ACTIVITIES IN RATIONAL ROSE

graphics/quatranirose_icon.gif
  1. Right-click on the state to make the shortcut menu visible.

  2. Select the Open Specification menu choice.

  3. Select the Actions tab.

  4. Right-click in the Action field to make the shortcut menu visible.

  5. Select the Insert menu choice. This will create an action called entry.

  6. Double-click on entry to make the Action Specification visible.

  7. Select when the action should occur: on entry, on exit, do, or on event.

  8. Enter the action or event information.

  9. Select the type: action or send event.

  10. Enter the action name and event information (if needed).

  11. Click the OK button to close the Action Specification.

  12. Click the OK button to close the State Specification.

Figure 9-10. State Details

graphics/09fig10.gif

A state with detailed information is shown in Figure 9-11.

Figure 9-11. State Details

graphics/09fig11.gif

I l @ ve RuBoard


Visual Modeling with Rational Rose 2002 and UML
Visual Modeling with Rational Rose 2002 and UML (3rd Edition)
ISBN: 0201729326
EAN: 2147483647
Year: 2002
Pages: 134

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net