Modeling Scenarios
with Sequence Diagrams

       Mustafa K. Isik

      April 23rd, 2007
Scenario - Definition
• sequence of processing steps
• to be executed under certain circumstances
• defined goal
• begins wi...
Scenario - Definition (2)

• can document business processes (n : 1)
   •   visualization of a specific execution instance o...
UML - Visualization of
             dynamic activities
•   Object Diagram

     •   system snapshot on object level, not s...
Sequence Diagram

• precise description of activities
    •   permits for discussion of technical correctness

    •   sui...
Sequence Diagram -
              Components

                                    Object
              objName : ClassName
...
Sequence Diagram -
             Components (2)

 objA : ClassName               objB : ClassName




               messag...
Sequence Diagram -
                Messages / Actions

synchronous
asynchronous

Return (opt.)
                     <<crea...
Example
order : OrderControl               chk : CardChecker


                       checkCredit()
                      ...
Literature
• Balzert, H 2000, Lehrbuch der
  Softwaretechnik - Software-Entwicklung, 2.
  Aufl., Spektrum Akad. Verlag, Hei...
Upcoming SlideShare
Loading in …5
×

Modeling Scenarios with Sequence Diagrams

2,755 views

Published on

Slides for a ten minute talk for an audience interested in learning about sequence diagrams - the super-quick way.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,755
On SlideShare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
126
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Modeling Scenarios with Sequence Diagrams

  1. 1. Modeling Scenarios with Sequence Diagrams Mustafa K. Isik April 23rd, 2007
  2. 2. Scenario - Definition • sequence of processing steps • to be executed under certain circumstances • defined goal • begins with a triggering event • ends by completing task successfully or failing
  3. 3. Scenario - Definition (2) • can document business processes (n : 1) • visualization of a specific execution instance of the respective business process • two fundamental description categories • successful execution of a process • failed execution of a process
  4. 4. UML - Visualization of dynamic activities • Object Diagram • system snapshot on object level, not suitable for modeling scenarios • Communication Diagram (formerly known as Collaboration Diagram) • models object collaboration during operation execution • Sequence Diagram • precise depiction of chronological execution order
  5. 5. Sequence Diagram • precise description of activities • permits for discussion of technical correctness • suitable as means for design and implementation communication • emphasizes chronological aspect of dynamic behavior
  6. 6. Sequence Diagram - Components Object objName : ClassName life line X end of life
  7. 7. Sequence Diagram - Components (2) objA : ClassName objB : ClassName message(parameter) activation bar (optional)
  8. 8. Sequence Diagram - Messages / Actions synchronous asynchronous Return (opt.) <<create>> obj : Class Instantiation <<destroy>> Dereferencing X
  9. 9. Example order : OrderControl chk : CardChecker checkCredit() <<create>> card : CreditCard charge(card) <<destroy>> X
  10. 10. Literature • Balzert, H 2000, Lehrbuch der Softwaretechnik - Software-Entwicklung, 2. Aufl., Spektrum Akad. Verlag, Heidelberg, Chapter 2.9.5 • Pilone, D 2004, UML Kurz & Gut, O’Reilly, S. 64 - 68 • Hamilton, K, Russell, M, 2006, Learning UML 2.0, O’Reilly, Chapter 7

×