Title: UML Interaction Diagrams
1Chapter 15
2Fig. 15.1
3Sequence Diagram
- public class A
-
- private B myB new B()
- public void doOne()
- myB.doTwo()
- myB.doThree()
-
4Fig. 15.2 Communication Diagram
5Another Example
- public class Sale
-
- private Payment p
- public void makePayment(Money cashTendered)
- p new Payment(cashTendered)
- //
-
- //
6Fig. 15.4 Communication Diagram
7Fig. 15.5 Lifeline Boxes Notations
8Fig. 15.6 Singleton Pattern
9Guideline
- Spend time doing dynamic object modeling with
interaction diagrams, not just static modeling
with a class diagram.
10Fig. 15.7 Messages
11Fig. 15.8 Reply or Return
12Fig. 15.9 Message to self or this
13Fig. 15.10 Creation of Instances
14Fig. 15.11 Object Lifetime and Object Destruction
15Fig. 15.12 Frames
- alt, loop, opt, par, region. p. 231
16Fig. 15.13 Conditional Messages
17Fig. 15.14 Cond. Message in UML 1.x
18Fig. 15.15 Mutual Exclusions
19Fig. 15.16 Iterations Through Containers
20Fig. 15.17
21Fig. 15.18 Frame Nesting
22Fig. 15.19 Frame Reference
23Fig. 15.20 Static Method Calls
24Fig. 15.21 Polymorphic Messages and Classes
25Fig. 15.22 Asynchronous vs. Synchronous Calls
26Fig. 15.23 Basic Communication Diagram
27Fig. 15.24 Do not number the start message
28Fig. 15.25 Messages to this
29Fig. 15.26 Instance Creation
30Fig. 15.27 Sequence Numbering
31Fig. 15.28 Complex Sequence Numbering
32Fig. 15.29 Conditional Message
33Fig. 15.30 Mutually Exclusive Messages
34Fig. 15.31 Iteration
35Fig. 15.32 Iteration over a Collection
36Fig. 15.33 Static Method Invocations
37Fig. 15.34 Polymorphic Cases
38Fig. 15.35 Asynchronous Call