Ch5 System Modeling
Ch5 System Modeling
• Context models
• Interaction models
• Structural models
• Behavioral models
• Model-driven engineering
System modeling
• Sequence diagrams are part of the UML and are used to model the
interactions between the actors and the objects within a system.
• A sequence diagram shows the sequence of interactions that take
place during a particular use case or use case instance.
• The objects and actors involved are listed along the top of the
diagram, with a dotted line drawn vertically from these.
• Interactions between objects are indicated by annotated arrows.
Sequence diagram for View patient information
Sequence
diagram for
Transfer
Data
Structural models
Structural models
Class Name
Class Attributes
Class Operations
class notion
Class Relationships
Generalizations
Associations
Dependencies
Generalizations
aggregation
-
A generalization hierarchy
A generalization hierarchy with added detail
Object class aggregation models
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.
States and stimuli for the microwave oven (b)
Stimulus Description
Half power The user has pressed the half-power
button.
Full power The user has pressed the full-power button.
Timer The user has pressed one of the timer
buttons.
Number The user has pressed a numeric key.
Door open The oven door switch is not closed.
Door closed The oven door switch is closed.
Start The user has pressed the Start button.
Cancel The user has pressed the Cancel button.
Model-driven engineering
Class Work
Topic Model Driven Engineering
Model-driven engineering