System Modeling
System Modeling
System
Modeling
CSC3324
Dr Houda CHAKIRI
Copyright © 2016, 2011, 2006 Pearson Education, Inc. All Rights Reserved
Context models
Interaction models
Learning
Objectives Structural models
Behavioral models
System Modeling
Copyright © 2016, 2011, 2006 Pearson Education, Inc. All Rights Reserved
Context Models
Copyright © 2016, 2011, 2006 Pearson Education, Inc. All Rights Reserved
Interaction Models
• Context models simply show the other systems in the environment, not how
the system being developed is used in that environment. Process models
reveal how the system being developed is used in broader business processes.
• UML activity diagrams may be used to define business process models.
Process
Model of
Involuntary
Detention
Use Case Modeling
lifeline
Messages
How to create
Sequence
Diagrams?
Copyright © 2016, 2011, 2006 Pearson Education, Inc. All Rights Reserved
Structural Models
Copyright © 2016, 2011, 2006 Pearson Education, Inc. All Rights Reserved
Behavioral Models
An Activity
Model of the
Insulin Pump's
Operation
Order Processing
Event-Driven Modeling
These model the behaviour of the system in response to external and internal
events. They show the system’s responses to stimuli so are often used for
modelling real-time systems.
State Diagram of a
State machine models Microwave Oven
show system states as
nodes and events as
arcs between these
nodes. When an event
occurs, the system
moves from one state
to another. Statecharts
are an integral part of
the UML and are used
to represent state
machine models.
Microwave Oven
Operation
States and Stimuli for the
Microwave Oven
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
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.