Professional Documents
Culture Documents
5 RQMT Modeling
5 RQMT Modeling
Requirements Modeling:
Scenarios, Information, and
Analysis Classes
By
Dr.Pooja Jain
Requirements Analysis
Requirements analysis
◦ specifies software’s operational characteristics
◦ indicates software's interface with other system elements
◦ establishes constraints that software must meet
Requirements analysis allows the software engineer (called
an analyst or modeler in this role) to:
◦ elaborate on basic requirements established during earlier
requirement engineering tasks
◦ build models that depict user scenarios, functional activities,
problem classes and their relationships, system and class behavior,
and the flow of data as it is transformed.
1
08-02-2022
A Bridge
system
description
analysis
model
design
model
Analysis model
Software engineers perform analysis modeling and
create an analysis model to provide information of
'what' software should do instead of 'how' to fulfill the
requirements in software. This model emphasizes
information such as the functions that software should
perform, behavior it should exhibit, and constraints
that are applied on the software.
Analysis model operates as a link between the
'system description' and the 'design model'. In the
analysis model, information, functions and the
behaviour of the system is defined and these are
translated into the architecture, interface and
component level design in the 'design modeling'.
2
08-02-2022
Design model
A design modeling Software Engineering is an
object-based picture or pictures that represent
the use cases for a system. Or to put it another
way, it is the means to describe a system's
implementation and source code in a
diagrammatic fashion. This type of representation
has a couple of advantages. First, it is a simpler
representation than words alone. Second, a
group of people can look at these simple
diagrams and quickly get the general idea behind
a system.
Rules of Thumb
The model should focus on requirements that are visible within the
problem or business domain. The level of abstraction should be
relatively high.
Each element of the analysis model should add to an overall
understanding of software requirements and provide insight into the
information domain, function and behavior of the system.
Delay consideration of infrastructure and other non-functional models
until design.
Minimize coupling throughout the system.
Be certain that the analysis model provides value to all stakeholders.
Keep the model as simple as it can be.
3
08-02-2022
Elements of Analysis
model
Data Dictionary:
It is a repository that consists of description of
all data objects used or produced by software.
It stores the collection of data present in the
software. It is a very crucial element of the
analysis model. It acts as a centralized
repository and also helps in modelling of data
objects defined during software requirements.
4
08-02-2022
Process Specification:
It stores the description of each functions present in
the data flow diagram. It describes the input to a
function, the algorithm that is applied for transformation
of input, and the output that is produced. It also shows
regulations and barriers imposed on the performance
characteristics that are applicable to the process, and
layout constraints that could influence the way in which
the process will be implemented.
Control Specification:
It stores the additional information about the control aspects of the software. It is
used to indicate how the software behaves when an event occurs and which
processes are invoked due to the occurrence of the event. It also provides the
details of the processes which are executed to manage events.
10
5
08-02-2022
11
Domain Analysis
Software domain analysis is the identification, analysis,
and specification of common requirements from a
specific application domain, typically for reuse on
multiple projects within that application domain . . .
[Object-oriented domain analysis is] the identification,
analysis, and specification of common, reusable
capabilities within a specific application domain, in
terms of common objects, classes, subassemblies, and
frameworks . . .
Donald Firesmith
12
6
08-02-2022
Domain Analysis
Define the domain to be investigated.
Collect a representative sample of applications in the domain.
Analyze each application in the sample.
Develop an analysis model for the objects.
13
14
7
08-02-2022
Scenario-Based Modeling
“[Use-cases] are simply an aid to defining what exists
outside the system (actors) and what should be
performed by the system (use-cases).” Ivar Jacobson
(1) What should we write about?
(2) How much should we write about it?
(3) How detailed should we make our description?
(4) How should we organize the description?
15
16
8
08-02-2022
17
Use-Cases
18
9
08-02-2022
Developing a Use-Case
What are the main tasks or functions that are performed by the
actor?
What system information will the the actor acquire, produce or
change?
Will the actor have to inform the system about changes in the
external environment?
What information does the actor desire from the system?
Does the actor wish to be informed about unexpected changes?
19
Use-Case Diagram
SafeHome
Access camera
surveillance via the cameras
Internet
Configure SafeHome
system parameters
homeowner
Set alarm
20
10
08-02-2022
Activity Diagram
Supplements the enter password
and user ID
use case by
providing a valid passwor ds/ ID invalid passwords/ ID
representation of
ot her f unct ions
may also be
select ed
input t ries remain
the flow of
select surveillance
no input
t ries r emain
prompt for
another view
21
Swimlane Diagrams
ho me o wne r c a m e ra i n t e rf a c e
in a specific use-case)
may also b e
select ed
action described by an
activity rectangle t hu mbn ail views select a sp ecif ic camer a
select specific
select camera icon
camera - thumbnails
generate video
output
exit t h is
f u nct io n
see
an o t her
camera
22
11
08-02-2022
Data Modeling
examines data objects independently of processing
focuses attention on the data domain
creates a model at the customer’s level of abstraction
indicates how data objects relate to one another
23
24
12
08-02-2022
25
What is a Relationship?
Data objects are connected to one another in different ways.
◦ A connection is established between person and car because the two
objects are related.
◦ A person owns a car
◦ A person is insured to drive a car
26
13
08-02-2022
ERD Notation
One common form:
(0, m)
object1 relationship object 2
(1, 1)
attribute
Another common form:
object1 relationship
object 2
(0, m) (1, 1)
27
Building an ERD
Level 1—model all data objects (entities) and their
“connections” to one another
Level 2—model all entities and relationships
Level 3—model all entities, relationships, and the
attributes that provide further depth
28
14
08-02-2022
(1,i)
materials lists
29
Class-Based Modeling
Class-based modeling represents:
◦ objects that the system will manipulate
◦ operations (also called methods or services) that will be applied to the
objects to effect the manipulation
◦ relationships (some hierarchical) between the objects
◦ collaborations that occur between the classes that are defined.
30
15
08-02-2022
31
32
16
08-02-2022
Potential Classes
Retained information. The potential class will be useful during analysis only if
information about it must be remembered so that the system can function.
Needed services. The potential class must have a set of identifiable operations
that can change the value of its attributes in some way.
Multiple attributes. During requirement analysis, the focus should be on "major"
information; a class with a single attribute may, in fact, be useful during design, but
is probably better represented as an attribute of another class during the analysis
activity.
Common attributes. A set of attributes can be defined for the potential class and
these attributes apply to all instances of the class.
Common operations. A set of operations can be defined for the potential class and
these operations apply to all instances of the class.
Essential requirements. External entities that appear in the problem space and
produce or consume information essential to the operation of any solution for the
system will almost always be defined as classes in the requirements model.
33
Defining Attributes
Attributes describe a class that has been selected for inclusion in
the analysis model.
◦ build two different classes for professional baseball players
◦ For Playing Statistics software: name, position, batting average, fielding percentage,
years played, and games played might be relevant
◦ For Pension Fund software: average salary, credit toward full vesting, pension plan
options chosen, mailing address, and the like.
34
17
08-02-2022
Defining Operations
Do a grammatical parse of a processing narrative and look at the
verbs
Operations can be divided into four broad categories:
◦ (1) operations that manipulate data in some way (e.g., adding,
deleting, reformatting, selecting)
◦ (2) operations that perform a computation
◦ (3) operations that inquire about the state of an object, and
◦ (4) operations that monitor an object for the occurrence of a controlling
event.
35
Analysis vs design
Analysis Design
.Focus on understanding
.Focus on understanding the solution.
the problem. Operations and attributes
Idealized design .Performance
.Behavior .Close to real code
.System structure .object lifecycles
.Functional requirements .Nonfunctional
.A small model requirements
.A large model
36
18