Ch5 System Modeling
Ch5 System Modeling
Context models
Interaction models
Structural models
Behavioral models
Model-driven engineering
Register in Course
Add Course Offering
Enter Grade
for Course
Student
Professor Actor
Chapter 5 System Modeling 21
Use Case Diagrams - Relationships
Inclusion <<includes>>
Inclusion enables to reuse one use case's steps inside another
use case.
Allow one to express commonality between several different use
cases.
Extension <<extends>>
Allows creating a new use case by adding steps to existing use
cases
Generalization
Allows child use cases to inherit behavior from parent use cases
Much like super classes in a class diagram
State Description
Waiting The oven is waiting for input. The display shows the current time.
Half power The oven power is set to 300 watts. The display shows ‘Half power’.
Full power The oven power is set to 600 watts. The display shows ‘Full power’.
Set time The cooking time is set to the user’s input value. The display shows
the cooking time selected and is updated as the time is set.
Disabled Oven operation is disabled for safety. Interior oven light is on.
Display shows ‘Not ready’.
Enabled Oven operation is enabled. Interior oven light is off. Display shows
‘Ready to cook’.
Operation Oven in operation. Interior oven light is on. Display shows the timer
countdown. On completion of cooking, the buzzer is sounded for five
seconds. Oven light is on. Display shows ‘Cooking complete’ while
buzzer is sounding.
Stimulus Description
Half power The user has pressed the half-power button.