dopawork.blogg.se

Draw sequence diagram
Draw sequence diagram






draw sequence diagram
  1. #DRAW SEQUENCE DIAGRAM MOVIE#
  2. #DRAW SEQUENCE DIAGRAM UPDATE#
  3. #DRAW SEQUENCE DIAGRAM CODE#
  4. #DRAW SEQUENCE DIAGRAM SERIES#

#DRAW SEQUENCE DIAGRAM SERIES#

  • Also see Booch G.,The Unified Modeling Language User Guide, ch 19.A Sequence diagram is a structured representation of behavior as a series of sequential steps over time.
  • Example diagrams from: al/library/3101.html.
  • Money dispenser Screen Keypad Bank computer Etc…
  • Treat each part of the ATM as a class     .
  • Draw a sequence diagram for:  Getting money from an ATM machine.
  • (If you have time during the exercise, get yourself to your seat.) Start at home, check in at the counter, go through security, and end up at the gate.
  • Draw a sequence diagram for:  Getting on a flight.
  • you would do a second diagram for them running over quota.

    draw sequence diagram

    For this diagram show the check coming back as acceptable.

    #DRAW SEQUENCE DIAGRAM UPDATE#

    Login, pick an album, upload a picture, etc… Think about the software classes that would be involved – WebGUI (think of this as reporting what the user does), UserAccount, Album, AlbumList, etc…  Don’t forget to check and update their current disk usage. Draw a sequence diagram for:  Adding a picture to Flickr (or any online image database).Think of the different classes that would be involved: Queue, Shipping, Inventory, UserAccount, other classes?

    #DRAW SEQUENCE DIAGRAM MOVIE#

    When you return it a person scan’s it in, the s/w detects that and then goes through a sequence of steps to get the new movie to you.

  • Draw a sequence diagram for:  Returning a movie to Netflix.
  • Don’t forget to open and close things like the jars, and put yourself away, cleanup, etc… Coming up: In class exercise

    draw sequence diagram

    I may or may not want the crusts cut off. Draw a sequence diagram for making a peanut butter and jelly sandwich if the following objects are alive: knife, peanut butter jar (and peanut butter), jelly jar (and jelly), bread, plate.

  • Draw a sequence diagram for:  In Beauty and the Beast kitchen items came to life.
  • Arrows  Synchronous call (you’re waiting for a return value) – triangle arrow-head  Asynchronous call (not waiting for a return) – open arrow-head Return call – dashed line Coming up: In class exercise.
  • #DRAW SEQUENCE DIAGRAM CODE#

  • Execution bar – bar around lifeline when code is running.
  • Method call lines  Must be horizontal!  Vertical height matters! “Lower equals Later”  Label the lines.
  • Sequence diagrams model object interactions with an emphasis on time ordering.
  • Remember: the goal of UML is communication and understanding.
  • Create sequence diagrams for use cases when it helps clarify and visualize a complex flow.
  •  Frequently it is better to create multiple simple diagrams
  • Rarely use options,loops,alt/else  These constructs complicate a diagram and make them hard to read/interpret.
  • Synchronous message Asynchronous message Return message Generic (unnamed) Generic (unnamed) objects
  • What does this mean? Do you typically care?Ĭomponents Objects: aStudent is a specific instance of the Student class.
  • Additionally if ActivityA happens before ActivityB, ActivityA must be above activity A Lower = Later!
  • Typically used during analysis and design toĭocument and understand the logical flow of your system Emphasis on time ordering!Īll lines should be horizontal to indicate instantaneous actions.
  • Show time sequences that are not easily depicted in other diagrams.
  • Show concurrent processes and activations.
  • Describe the flow of messages, events, actions between objects.
  • Activity & Swimlane Diagrams  Emphasize and show flow of control among objects Coming up: Sequence Diagrams.
  • State Diagrams  State machine consisting of states, transitions, events and activities of an object.
  •  Sequence Diagrams - emphasize time ordering  Communication Diagrams - emphasize structural ordering
  • Interaction Diagrams - Set of objects or roles and the messages that can be passed among them.
  • Dynamic aspects of the system  Messages moving among objects/ classes  Flow of control among objects  Sequences of events Coming up: Dynamic Diagram Types.
  • UML Specifies a number of interaction diagrams to model dynamic aspects of the system.







  • Draw sequence diagram