Lecture-07 - Software Engineering
Lecture-07 - Software Engineering
1
Topics covered
Context models
Interaction models
Structural models
Behavioral models
Model-driven engineering
2
System modeling
3
Existing and planned system models
5
UML diagram types
6
Context models
7
System boundaries
8
The context of the MHC-PMS
9
Process perspective
10
Interaction models
11
Use case modeling
12
Transfer-data use case
13
Tabular description of the ‘Transfer data’ use-
case
14
Use cases in the MHC-PMS involving the role
‘Medical Receptionist’
15
Sequence diagrams
17
Sequence diagram for Transfer Data
18
Structural models
19
Class diagrams
21
Classes and associations in the MHC-PMS
22
The Consultation class
23
Key points
24
Generalization
25
Generalization
27
A generalization hierarchy with added detail
28
Object class aggregation models
29
The aggregation association
30
Behavioral models
31
Data-driven modeling
32
An activity model of the insulin pump’s
operation
33
Order processing
34
Event-driven modeling
35
State machine models
36
State diagram of a microwave oven
37
States and stimuli for the microwave oven (a)
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.
38
States and stimuli for the microwave oven (b)
Stimulus Description
Half power The user has pressed the half-power button.
39
Microwave oven operation
40
Model-driven engineering
41
Usage of model-driven engineering
43
Types of model
45
Multiple platform-specific models
46
Agile methods and MDA
47
Executable UML
48
Features of executable UML