UML Interaction Diagrams - PowerPoint PPT Presentation

1 / 38
About This Presentation
Title:

UML Interaction Diagrams

Description:

{ p = new Payment(cashTendered); 6. Fig. 15.4: Communication Diagram. 7 ... object modeling with interaction diagrams, not just static modeling with a class diagram. ... – PowerPoint PPT presentation

Number of Views:84
Avg rating:3.0/5.0
Slides: 39
Provided by: dmi69
Category:

less

Transcript and Presenter's Notes

Title: UML Interaction Diagrams


1
Chapter 15
  • UML Interaction Diagrams

2
Fig. 15.1
3
Sequence Diagram
  • public class A
  • private B myB new B()
  • public void doOne()
  • myB.doTwo()
  • myB.doThree()

4
Fig. 15.2 Communication Diagram
5
Another Example
  • public class Sale
  • private Payment p
  • public void makePayment(Money cashTendered)
  • p new Payment(cashTendered)
  • //
  • //

6
Fig. 15.4 Communication Diagram
7
Fig. 15.5 Lifeline Boxes Notations
8
Fig. 15.6 Singleton Pattern
9
Guideline
  • Spend time doing dynamic object modeling with
    interaction diagrams, not just static modeling
    with a class diagram.

10
Fig. 15.7 Messages
11
Fig. 15.8 Reply or Return
12
Fig. 15.9 Message to self or this
13
Fig. 15.10 Creation of Instances
14
Fig. 15.11 Object Lifetime and Object Destruction
15
Fig. 15.12 Frames
  • alt, loop, opt, par, region. p. 231

16
Fig. 15.13 Conditional Messages
17
Fig. 15.14 Cond. Message in UML 1.x
18
Fig. 15.15 Mutual Exclusions
19
Fig. 15.16 Iterations Through Containers
20
Fig. 15.17
21
Fig. 15.18 Frame Nesting
22
Fig. 15.19 Frame Reference
23
Fig. 15.20 Static Method Calls
24
Fig. 15.21 Polymorphic Messages and Classes
25
Fig. 15.22 Asynchronous vs. Synchronous Calls
26
Fig. 15.23 Basic Communication Diagram
27
Fig. 15.24 Do not number the start message
28
Fig. 15.25 Messages to this
29
Fig. 15.26 Instance Creation
30
Fig. 15.27 Sequence Numbering
31
Fig. 15.28 Complex Sequence Numbering
32
Fig. 15.29 Conditional Message
33
Fig. 15.30 Mutually Exclusive Messages
34
Fig. 15.31 Iteration
35
Fig. 15.32 Iteration over a Collection
36
Fig. 15.33 Static Method Invocations
37
Fig. 15.34 Polymorphic Cases
38
Fig. 15.35 Asynchronous Call
Write a Comment
User Comments (0)
About PowerShow.com