Professional Documents
Culture Documents
Software Requirements
Engineering
Topic 7:
Requirements Analysis I
Contents
• Requirements Analysis
– Models
• System Modelling
– UML Diagram Types
• Goal Diagram
• System and Context Boundaries
• Context Diagram
• Data Flow Diagram
RECAP
Requirements Engineering Process
R equirements
Feasibility
elicitation and
study
analysis
R equirements
specification
Feasibility R equirements
r eport validation
System
models
R equirements
document
Requirements vs Design
Reality
(Universe of discourse)
Model
(Abstract Representation)
Models
• Models are abstraction for a specific purpose.
Properties of models:
•Mapping of reality
•Reduction of reality
•Pragmatic property
Why using models?
• Easier to understand selected information
– Pictures are easier to understand and memorise
• A goal model
– A conceptual model that documents goals, their
decomposition into sub-goals and goals dependencies.
A Goal Model
A Goal Model
System Modelling
• The process of developing abstract models of a system, with
each model presenting a different view or perspective of
that system.
CAT ELEPHANT
Syntax
Semantic
ALI EATS AN APPLE
System Modelling
Perspectives:
• An external perspective, where we model the context or
environment of the system.
• An internal perspective, where we model the insights of the
system :
– A process perspective
ERD
Use Case
Goal
DFD
diagram
Sequence
State diagram
System Context
• The part of reality that is relevant for the requirements of a system.
Business Process
& Events
Human interface
SYSTEM
– Which aspects pertain to the system context (i.e. have relation to the
system to be developed) and which aspects are part of the irrelevant
environment?
System and Context Boundaries
System Boundary
SYSTEM
CONTEXT
SYSTEM
IRRELEVANT ENVIRONMENT
Context Boundary
System and Context Boundaries
System
Boundary SYSTEM
CONTEXT
SYSTEM
SYSTEM
CONTEXT
SYSTEM
IRRELEVANT ENVIRONMENT
Context Boundary
SYSTEM
CONTEXT
SYSTEM
IRRELEVANT ENVIRONMENT
Original Context
Boundary
The gray zone is the vague separation of the system and the context as well as
the irrelevant environment. It may shift over time during the requirements
engineering process.
How to Illustrate System Context?
• Option 1: Context Diagram
IRRELEVANT SYSTEM
ENVIRONMENT CONTEXT
SYSTEM
How to Illustrate System Context?
• Option 2: Use Case Diagram
Point of Sales
Process Sale
Customer
Payment
Authorization
Service
Handle Returns
SYSTEM
Cashier CONTEXT
«actor»
Cash In Money Accounting
System
Manager
«actor»
HR System
SYSTEM
IRRELEVANT
THESE ARE CALLED SYSTEM MODELS
ENVIRONMENT
System Modelling
(UML Diagram Types)
Example: UML activity diagram
System Modelling
(UML Diagram Types)
Example: UML sequence diagram
System Modelling
(UML Diagram Types)
Example: UML class diagram
System Modelling
(UML Diagram Types)
Example: UML statecharts
Context Diagram
• A Context Diagram is used to illustrate the operational context
of a system.
– It shows what lies outside the system boundary.
• The diagram is a top-level view that shows the system and its
relationship with other systems (i.e. scope of the system).
Context Diagram
Symbols to draw a Context Diagram:
• Illustrates how data moves through a system but does not show
program logic or processing steps.
– Provides a logical model that shows what the system does, not how it does
it.
Beyond Context Diagram –
Data Flow Diagram
Symbols to draw a Data Flow Diagram:
Context Diagram
DFD Level 0
DFD Level 1
Beyond Context Diagram –
Data Flow Diagram
Balancing DFD
DFD Level 0
Context Diagram
Beyond Context Diagram –
Data Flow Diagram
Balancing DFD
DFD Level 1
DFD Level 0
THANK YOU
• Question?
• Tutorial:
– Discuss and execute Elicitation (group project Phase
1)
– Case study – context D, DFD
– Project Goal model
• Next Lecture:
– Requirements Analysis II