1 / 5

UML First Pass: Sequence Diagram

: SimpleWatch. : LCDDisplay. :Time. UML First Pass: Sequence Diagram. Object. : WatchUser. pressButton1(). blinkHours(). pressButton1(). blinkMinutes(). pressButton2(). incrementMinutes(). refresh (). pressButtons1And2(). commitNewTime(). stopBlinking(). Message. Activation.

Download Presentation

UML First Pass: Sequence Diagram

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. :SimpleWatch :LCDDisplay :Time UML First Pass: Sequence Diagram Object :WatchUser pressButton1() blinkHours() pressButton1() blinkMinutes() pressButton2() incrementMinutes() refresh() pressButtons1And2() commitNewTime() stopBlinking() Message Activation Sequence diagrams represent the behavior as interactions

  2. Increment Hours Increment Minutes Increment Seconds UML First Pass: Statechart Diagrams Initial state State Event button2Pressed button1&2Pressed Blink Hours Transition button1Pressed button2Pressed button1&2Pressed Blink Minutes button1Pressed button1&2Pressed button2Pressed Blink Stop Seconds Blinking Final state

  3. Used during requirements analysis To refine use case descriptions to find additional objects (“participating objects”) Used during system design to refine subsystem interfaces Classes are represented by columns Messages are represented by arrows Activations are represented by narrow rectangles Lifelines are represented by dashed lines UML Sequence Diagrams TicketMachine Passenger selectZone() insertCoins() pickupChange() pickUpTicket()

  4. UML Sequence Diagrams: Nested Messages ZoneButton TarifSchedule Display selectZone() lookupPrice(selection) price displayPrice(price) Dataflow • The source of an arrow indicates the activation which sent the message • An activation is as long as all nested activations …to be continued...

  5. State Chart Example Waiting Requests finished (no further requests) Button press (other floor) Button press (same floor) Arrival at a request floor Moving Service floor (open doors) Button press Sample State Chart for an Elevator class

More Related