UML State Models U State
- de s
Eunjee Song
- Dept. of Computer Science
Baylor University y y
Some slides adapted from materials in the following sources: UML 2 0 Specification by OMG UML Tutorial by Dr R France and State Model
Eunjee Song State Models-1
UML 2.0 Specification by OMG, UML Tutorial by Dr. R. France, and State Model Tutorial by Dr. E Toch.
Overview
Basic State Model Concepts/Notations Basic State Model Concepts/Notations History Psudostates
State Model Exercise 1
State Model Exercise 1 Composite States State Modeling Design Studio Advanced State Model Topics in UML 2.0
Eunjee Song State Models-2
What’s Missing in Behavior Modeling?
p : Product : ShooppingCart customer display() getPrice() addProduct (p) checkout ()
In Sequence diagram, we do not really know how the state of the shopping cart state of the shopping cart changes.
Eunjee Song
Modeling States
How can we model the state of the shopping
How can we model the state of the shopping cart?
Depends on:
Object state (e.g. created, destroyed)
Variable assignment
Relation status (i.e. number of items)
Operating methods & processes
History
Eunjee Song
History