1 / 10

Chapter 29

Chapter 29. UML State Diagrams. Basics. Shows lifecycle of an object Event: Significant occurrence Example: Phone receiver taken off the hook Example: User moves to next level State: Condition of an object (or group of objects) at a moment in time Transition: A relationship between states

yvon
Download Presentation

Chapter 29

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. Chapter 29 UML State Diagrams

  2. Basics

  3. Shows lifecycle of an object • Event: Significant occurrence • Example: Phone receiver taken off the hook • Example: User moves to next level • State: Condition of an object (or group of objects) at a moment in time • Transition: A relationship between states • One transition: Object moves from one state to the other when a particular event occurs

  4. How to apply state machine diagrams? • Object state independent: • Response to a given event always the same • Object state dependent: • Based on state, object may respond differently to different events • Example: Ball hits gizmo • “state = quiet”  Response: Gizmo blinks • “state = sound on”  Response: Game makes sound • Use state machines for state-dependent objects with complex behavior

  5. When to use state machine diagrams? • Typically not useful in business information systems • More useful in “time varying systems” • Process control • Device control • Protocol handlers • Games • Telecommunications programs

  6. How are state machines used? • To model the behavior of a complex reactive machine (e.g. gizmo) in response to events • Example: Navigation between web pages in a site • Example: Event handling based on mode or conditions (e.g. Edit-Paste button active only if clipboard has stuff in it) • To model legal sequence of operations • Example: Protocol or language specifications

  7. More state diagram notation

  8. Nested (hierarchical states)

  9. UI Navigation Example

  10. NextGen State Machine Example

More Related