Escolar Documentos
Profissional Documentos
Cultura Documentos
Tahir Farooq
tahir.farooq@nu.edu.pk
Requirement Engineering
[Sommerville 1997]
Role of Requirements
Project Planning
Project
Construction Tracking
Process
Software
Requirem
Change
ents
User Control
Documentation
System Testing
Levels of Requirements
Business Requirements
User Requirements
Functional Requirements
Non-Functional Requirements
Business Requirements
These are statements of services the system should provide, how the
system should react to particular inputs, and how the system should
behave in particular situations
Non-Functional
requirements
Run on multiple
Performance
requirements
Space
requirements
platform(ma os,
window, )
Product Requirements
Reliability and
performance
The system shall allow one hundred thousand hits
per minute on the website
Mean time to failure
The system shall not have down time of more than one
second for continuous execution of one thousand hours
Organizational Requirements
Organizational
requirements
Privacy Safety
requirements requirements
External Requirements
Multiple organization are
going to use your same
product. External
requirements
Therefore software
companies does not give
code and documentation
Interoperability Ethical Legislative
requirements requirements requirements
Privacy Safety
requirements requirements
External Requirements
External
requirements
Privacy Safety
requirements requirements
External Requirements
External
requirements
Privacy Safety
requirements requirements
External Requirements
External
requirements
Privacy Safety
requirements requirements
Telenor
External Requirements
External
requirements
Should
handle by
developer
Critical issues
Interoperability Ethical Legislative
requirements requirements Maintainability issues
requirements
Recovery Issues
Privacy Safety
requirements requirements
External Requirements
The system shall not disclose any personal
information about members of the library system to
other members except system administrators
License
Domain Requirements
Requirements that come from the application domain and
reflect fundamental characteristics of that application
domain
User Quality
Requirements Attributes
Other
Non-functional
Requirements
Use Case document
200%
150%
100%
50%
0%
The staff shall be able to use all the system functionalities. The
average number of errors made by users shall not exceed two per
hour of system use.
Ambiguous Requirements
Portability Correctness
Reusability Reliability
Interoperability Efficiency
Survivability Usability
Safety Integrity
Manageability Maintainability
Supportability Flexibility
Replaceability Testability
Functionality Security
The Problems with our Requirements Practices
Elicitation
Elaboration
Negotiation
Specification
Validation
Requirements
Management
Inception Task
These questions focus on the customer, other stakeholders, the overall goals, and the
benefits
Are you the right person to answer these questions? Are your answers "official"?
Are my questions relevant to the problem that you have?
Am I asking too many questions?
Can anyone else provide additional information?
Should I be asking you anything else?
Inception
Elicitation
Elaboration
Negotiation
Specification
Validation
Requirements
Management
Goals of Analysis Modeling
Provides the first technical representation of a system
Is easy to understand and maintain
Deals with the problem of size by partitioning the system
Uses graphics whenever possible
Differentiates between essential information versus implementation information
Helps in the tracking and evaluation of interfaces
Provides tools other than narrative text to describe software logic and policy
Analysis Rules of Thumb
The analysis 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 following
Information domain, function, and behavior of the system
The model should delay the consideration of infrastructure and other non-functional models
until the design phase
First complete the analysis of the problem domain
The model should minimize coupling throughout the system
Reduce the level of interconnectedness among functions and classes
The model should provide value to all stakeholders
The model should be kept as simple as can be
Analysis Modeling Approaches
Structured analysis
Considers data and the processes that transform the data as separate entities
Data is modeled in terms of only attributes and relationships (but no operations)
Processes are modeled to show the 1) input data, 2) the transformation that occurs on that data,
and 3) the resulting output data
Object-oriented analysis
Focuses on the definition of classes and the manner in which they collaborate with one another to
fulfill customer requirements
Elements of the Analysis Model
Object-oriented Analysis Structured Analysis
Scenario-based Flow-oriented
modeling modeling
Use case text Data structure diagrams
Use case diagrams Data flow diagrams
Activity diagrams Control-flow diagrams
Swim lane diagrams Processing narratives
Class-based Behavioral
modeling modeling
Class diagrams
State diagrams
Analysis packages
Sequence diagrams
CRC models
Collaboration diagrams
Scenario-Based Modeling
Developing Use Cases
Step One Define the set of actors that will be involved in the story
Actors are people, devices, or other systems that use the system or product within
the context of the function and behavior that is to be described
Actors are anything that communicate with the system or product and that are
external to the system itself
Step Two Develop use cases, where each one answers a set of
questions