Title: Object Interaction Diagrams
1Object Interaction Diagrams
- CSC 422
- Kutztown University
- Dr. Spiegel
2Use Case Diagram
- Lays out the use cases in a system
- Shows actors and the different system actions in
which they are participants - Provides an overall picture of the interactions
within a system
3Use Case Diagram
4Object Interaction Diagrams
5Collaborations
- What is a collaboration?
- An arrangement of objects within a context
- Properties
- The collaboration is aimed at achieving some goal
- Object (possibly) fulfills a predefined role
- A single object may fulfill more than one role
- Roles are only meaningful within their context
- A parameterized collaboration is a pattern
- Collaboration diagram
- Shows Interaction between the participating
objects - Relationships are indicated by arrows (messages,
composition, ) - Time is indicated by sequence number
6Validate User (Administrator)
7Change Password (Administrator)
8Register Course (Administrator)
9 Drop Course (Administrator)
10Add Course (Administrator)
11Remove Courses (Administrator)
12List Students(Administrator)
13Student Details (Administrator)
14Add Account (Administrator)
15Delete Account (Administrator)
16View Transcript (Administrator)
17Sequence Diagrams
- Describe how groups of objects interact
- Shows messages passed between objects over time
- Properties
- Captures the behavior of a single scenario
- Most popular way for representing a use-case
- Actually shows the same information as a
collaboration diagram - Sequence diagrams (SD) vs. Collaboration Diagrams
(CD) - SD Shows time clearly object relationships are
implicit - CD Shows object relationships clearly time has
no visual representation
18Validate User (Administrator)
19Change Password (Administrator)
20Register Course (Administrator)
21Drop Course (Administrator)
22Add Course (Administrator)
23Remove Courses (Administrator)
24List Students (Administrator)
25 Student Details (Administrator)
26Add Account (Administrator)
27Delete Account (Administrator)
28View Transcript (Administrator)