Behavioral Models
Reading
Software Engineering (Sommerville 2016)
- Chapter 5: System modeling
- Behavioral models
UML Distilled (Fowler 2004)
Learning Objectives
- Model procedural logic using an activity diagram
- Model event-driven behavior using a state machine diagram
Resources
Complete the handouts on activity diagrams and state machine diagrams as time permits in (or outside of) class
Activity Diagrams
Examples
- “The Lion Sleeps Tonight”
- Online Shopping (courtesy uml-diagrams.org)
- Resolve Software Issue (courtesy uml-diagrams.org)
- Ticket Vending Machine (courtesy uml-diagrams.org)
State Machine Diagrams
Examples
- Water Phases (courtesy uml-diagrams.org)
- Online Shopping (courtesy uml-diagrams.org)
- Thread Life Cycle (courtesy uml-diagrams.org)