Download System Models - Software Engineering I - Research Paper | CS 361 and more Papers Software Engineering in PDF only on Docsity!
©Ian Sommerville 2000
Software Engineering, 6th edition. Chapter 7
System models
Abstract descriptions ofsystems whose requirementsare being analysed
©Ian Sommerville 2000
Software Engineering, 6th edition. Chapter 7
Objectives
To explain why the context of a system shouldbe modelled as part of the RE process
To describe behavioural modelling, datamodelling and object modelling
To introduce some of the notations used in theUnified Modeling Language (UML)
©Ian Sommerville 2000
Software Engineering, 6th edition. Chapter 7
Context models
Context models are used to illustrate the boundaries
of a system
Social and organizational concerns may affectthe decision on where to position systemboundaries
an analogy: programmatic database control through JDBCversus SQL stored procedures.
Architectural models show the system and itsrelationship with other systems
©Ian Sommerville 2000
Software Engineering, 6th edition. Chapter 7
The context of an ATM system
Auto-teller
system
Security
system
Maintenance
system
Accountdatabase
Usage
database
Branch
accounting
system Branch counter
system
©Ian Sommerville 2000
Software Engineering, 6th edition. Chapter 7
Software Update Context Model
Web Service
Client
Software Update
Database
Web Site
Software Metadata
Repository
Update
Repository
Log Database
Metrics Service
Replication
Service
©Ian Sommerville 2000
Software Engineering, 6th edition. Chapter 7
Process models
Process models show the overall process and theprocesses that are supported by the system
Data flow models may be used to show theprocesses and the
flow of information
from one
process to another
©Ian Sommerville 2000
Software Engineering, 6th edition. Chapter 7
Behavioural models
Two types of behavioural models are
Data flow models that show how data is processed as it movesthrough the system
State machine models that show the system’s response toevents
©Ian Sommerville 2000
Software Engineering, 6th edition. Chapter 7
Data-flow models
Data flow diagrams show the transformationsdata goes through as it flows through a system
Simple and intuitive notation that customers canunderstand
Show end-to-end processing of data
©Ian Sommerville 2000
Software Engineering, 6th edition. Chapter 7
Data flow diagrams
DFDs model the system from a functionalperspective
Tracking and documenting how the dataassociated with a process is helpful to develop anoverall understanding of the system
Data flow diagrams may also be used in showingthe data exchange between a system and othersystems in its environment
©Ian Sommerville 2000
Software Engineering, 6th edition. Chapter 7
DFD example
Patient
Watch
System
Patient
Nurse
Nurse
vital signs
report
warningmessage
log data
request for
report
Patient log
©Ian Sommerville 2000
Software Engineering, 6th edition. Chapter 7
DFD example
warningmessage
evaluate
bounds
violation
unpack
signs
formatpatient
data
producewarning
message
patient data
formattedpatient data
vital signsbounds
Patient bounds
blood pressure,temp, pulse
clock
temperature
pulse
blood pressure
date,time
Central Monitoringexploded
©Ian Sommerville 2000
Software Engineering, 6th edition. Chapter 7
State machine models
These model the behaviour of the system inresponse to external and internal
events
They show the system’s responses to stimuli soare often used for modelling real-time systems
State machine models show system states asnodes and events as arcs between these nodes.When an event occurs, the system moves fromone state to another.
User interfaces often modeled as state machines
©Ian Sommerville 2000
Software Engineering, 6th edition. Chapter 7
Semantic data models
Used to describe the logical structure of dataprocessed by the system
Entity-relation-attribute model sets out theentities in the system, the relationships betweenthese entities and the entity attributes
Widely used in database design. Can readily beimplemented using relational databases
No specific notation provided in the UML butobjects and associations can be used
©Ian Sommerville 2000
Software Engineering, 6th edition. Chapter 7
Semantic Model - a company
Company
name
Group
namevice president
Business Unit
namegeneral manager
Organization
namelab manager
Section
namesection manager
Department
namemanager
Employee
nameposition
N N
N
N
N
N
President
name
has
is a
has
N
has 1