1 / 14

Week 12: Activity & Sequence Diagrams

Week 12: Activity & Sequence Diagrams. MSIS 670: UML Models. UML Techniques for OO Design. Activity Diagram Communication (Collaboration) Diagram Sequence Diagram Package, Component, Deployment Diagrams. Activity Diagrams.

gaytan
Download Presentation

Week 12: Activity & Sequence Diagrams

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Week 12: Activity & Sequence Diagrams MSIS 670: UML Models

  2. UML Techniques for OO Design • Activity Diagram • Communication (Collaboration) Diagram • Sequence Diagram • Package, Component, Deployment Diagrams

  3. Activity Diagrams • Shows the conditional logic for the sequence of system activities needed to accomplish a business process • Clearly shows parallel and alternative behaviors • Can be used to show the logic of a use case

  4. Activity Diagram • Focus on system behavior • Model an object’s workflow during program execution • Model the actions the object will perform and in what order • UML representation • Action state ( rectangle with its left and right sides replaced by arcs curving outwards) • Action order ( arrow with a stick arrowhead) • Initial state (solid circle) • Final state (solid circle enclosed in an open circle)

  5. Components of Activity Diagram

  6. Fig. 5.30 | Activity diagram for a BalanceInquiry object.

  7. Fig. 5.31 | Activity diagram for a withdrawal transaction.

  8. When to Use Activity Diagrams • Activity diagrams are useful when you want to describe a behavior which is parallel, or when you want to show how behaviors in several use-cases interact. • Use Communication diagrams when you want to show how objects collaborate to implement an activity diagram. Use a state (chart) diagram to show how one object (attribute) changes during its lifetime.

  9. Interaction Diagrams • Model interactions use UML • Communication diagrams • Also called collaboration diagrams • Emphasize which objects participate in collaborations • Sequence diagrams • Emphasize when messages are sent between objects

  10. A communication diagram Fig. 7.26 | Communication diagram of the ATM executing a balance inquiry.

  11. Sequence diagrams • Help model the timing of collaborations • Lifeline • Dotted line extending down from an object’s rectangle • Represents the progression of time • Activation • Thin vertical rectangle • Indicates that an object is executing

  12. A Sequence Diagram Fig. 7.28 | Sequence diagram that models a Withdrawal executing.

  13. Elements in Sequence Diagrams

  14. Creating a Sequence Diagram

More Related