Sequence-Collbortion Diagram
Sequence-Collbortion Diagram
Interaction Diagrams:
Sequence Diagram
Collbortion Diagram
Source
Mastering UML with Rational Rose
2002
Interaction Diagrams
Source
Mastering UML with Rational Rose
2002
Interaction Diagrams
Source
Mastering UML with Rational Rose
2002
Association: Unidirectional
• Boundary classes
• (forms and windows) should display and
receive information, but should also do
minimal business processing
• (interfaces) should send information to another
system or receive information from another
system, but again do minimal business
processing
Source
Mastering UML with Rational Rose
2002
Sequence Diagrams: Messages
Synchronization
Source
Mastering UML with Rational Rose
2002
Sequence Diagrams: Messages
Synchronization
Source
Mastering UML with Rational Rose
2002
Sequence Diagrams: Messages
Synchronization
Source
Mastering UML with Rational Rose
2002
Sequence Diagrams: Messages
Synchronization
Source
Mastering UML with Rational Rose
2002
Sequence Diagrams: Messages
Synchronization
Source
Mastering UML with Rational Rose
2002
Sequence Diagrams: Messages
Synchronization
Source
Mastering UML with Rational Rose
2002
Sequence Diagrams: Messages
Frequency
Source
Mastering UML with Rational Rose
2002
Combined Fragments
1. Alternatives:
Source
Mastering UML with Rational Rose
2002
Combined Fragments (cont.)
2. Loops
Source
Mastering UML with Rational Rose
2002
Collaboration Diagrams
Source
Mastering UML with Rational Rose
2002
Example: ATM Withdrawal
1. Customer inserting his card into the card reader
2. Then, the card reader reads the card number,
3. opens Joe's account object,
4. and initializes the ATM screen.
5. The screen prompts Joe for his PIN. He enters 1234.
6. The screen verifies the PIN with the account object.
7. The screen presents Joe with his options, and he chooses
withdraw.
8. The screen then prompts Joe for the amount to
withdraw.
9. He chooses $20.
10.Then, the screen withdraws the funds from the account.
11.The account object, verifies that the account contains at
least $20.
12.Then, it deducts the funds from the account.
13.Next, it instructs the cash dispenser to provide $20 in
cash.
14.Joe's account also instructsSource the dispenser to
Mastering UML with Rational Rose
15.provide a receipt. 2002
Practice
• Create the Sequence diagram and Collaboration diagram
to the use case that adds an item to the shopping cart
1. Customer
2. Cart Interface
3. Cart Mgr
4. Product Mgr
5. Product Items
6. White Crew Socks
7. Cart Items
Source
Mastering UML with Rational Rose
2002
Source
Mastering UML with Rational Rose
2002
Source
Mastering UML with Rational Rose
2002
Thanks For
Listening
Source
Mastering UML with Rational Rose
2002