UML State Machine Diagrams - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

UML State Machine Diagrams

Description:

UML State Machine Diagrams. CS2335. Spring 2006. Agenda. State Machine Diagram Symbology ... State Machine Symbology. Normal State. name. Activities. Embedded ... – PowerPoint PPT presentation

Number of Views:341
Avg rating:3.0/5.0
Slides: 12
Provided by: Robert9
Category:

less

Transcript and Presenter's Notes

Title: UML State Machine Diagrams


1
UML State Machine Diagrams
  • CS2335
  • Spring 2006

2
Agenda
  • State Machine Diagram Symbology
  • State Machine Diagram Exercise

3
State Machine Diagrams
  • Describe how an objects (classs) state changes
    in response to external events
  • State diagrams derived from Harels statecharts,
    now called Statechart
  • Allow embedded state machines to account for
    state-space explosion
  • Make one per CLASS or one for SYSTEM
  • Use state diagrams for external events, use
    interaction (Sequence) diagrams for internal
    events (messages).

4
State Machine Key Terms
  • State
  • Transition
  • Activity
  • entry, exit, do, include, internal_event
  • Action
  • Event

5
State Machine Symbology
Normal State
Start/Initial State
Stop/Accepting/Final State
Transition
6
Transition Text Syntax
EventName(parameter list) Guard / Action
Special Events After x seconds When (time1200)
Special Guards in StateName not in
StateName
right-mouse-down (location) location in window
/ object pick-object (location)
object.highlight ()
7
Basic State Machine, Order Entry
Not all items checked / getNextItem
All items checked All items available
do/initiate delivery
do/check item
All items checked Some items not in stock
transhipped
cancelled
Item Received Some items not In stock
cancelled
8
Another Sample State Machine
9
Order Entry With Concurrency
Ordering
waiting
OUT
IN
IN
checking
shipping
OK
authorizing
authorized
10
(No Transcript)
11
Lab 3 State Machine Exercise
Write a Comment
User Comments (0)
About PowerShow.com