Week 14: Activity Diagram - PowerPoint PPT Presentation

About This Presentation
Title:

Week 14: Activity Diagram

Description:

UML Techniques for OO Design. Activity Diagram. Communication (Collaboration) Diagram ... UML representation ... interactions use UML. Communication diagrams ... – PowerPoint PPT presentation

Number of Views:82
Avg rating:3.0/5.0
Slides: 15
Provided by: john1285
Category:
Tags: activity | diagram | uml | week

less

Transcript and Presenter's Notes

Title: Week 14: Activity Diagram


1
Week 14 Activity Diagram Interaction Diagrams
IFS 410 Advanced Analysis and Design
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 objects 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 objects
    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
Write a Comment
User Comments (0)
About PowerShow.com