Developing Requirements Adapted after : Timothy Lethbridge and Robert Laganiere, Object-Oriented Software Engineering – Practical Software Development.

Slides:



Advertisements
Similar presentations
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 4: Developing Requirements.
Advertisements

Chapter 4: Developing Requirements
Karolina Muszyńska Based on:
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 4: Developing Requirements.
Systems Analysis and Design in a Changing World, Fourth Edition
Identifying Needs and Establishing Requirements John Thiesfeld Jeff Morton Josh Edwards.
© 2005 Prentice Hall4-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
Fundamentals of Information Systems, Second Edition
PVK-061 Contents Introduction Requirements Engineering Project Management Software Design Detailed Design and Coding Quality Assurance Maintenance.
Requirements Analysis 4. 1 Use Case I b504.ppt © Copyright De Montfort University 2000 All Rights Reserved INFO2005 Requirements Analysis Use-Cases.
7M822 Software Requirements Introduction 7 September 2010.
The Project AH Computing. Functional Requirements  What the product must do!  Examples attractive welcome screen all options available as clickable.
Chapter 7: The Object-Oriented Approach to Requirements
Use case diagrams A use case diagram is UML’s notation for showing the relationships among a set of use cases and actors A use case diagram can help the.
RUP Requirements RUP Artifacts and Deliverables
® IBM Software Group © 2006 IBM Corporation Writing Good Use Cases Module 4: Detailing a Use Case.
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 06. Requirements.
Object-Oriented System Analysis and Design Chapter III- Requirement Elicitation Collecting and organizing users requirement- WHAT- User needs.
المحاضرة الثالثة. Software Requirements Topics covered Functional and non-functional requirements User requirements System requirements Interface specification.
Investigating System Requirements
Demystifying the Business Analysis Body of Knowledge Central Iowa IIBA Chapter December 7, 2005.
Software engineering lec4 Requirements. Developing requirements Start thinking about particular problem Understand the problem  Domain analysis Gather.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 6 Slide 1 Requirements Engineering Processes l Processes used to discover, analyse and.
Chapter 4: Developing Requirements
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 7 Slide 1 Requirements Engineering Processes.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 7: Focusing on Users and Their Tasks.
Software Engineering – University of Tampere, CS DepartmentJyrki Nummenmaa REQUIREMENT SPECIFICATION Today: Requirements Specification.
10/12/ Recall The Team Skills 1. Analyzing the Problem (with 5 steps) 2. Understanding User and Stakeholder Needs 1. Interviews & questionnaires.
Chapter 6 Use Cases. Use Cases: –Text stories Some “actor” using system to achieve a goal –Used to discover and record requirements –Serve as input to.
Programming in Java Unit 3. Learning outcome:  LO2:Be able to design Java solutions  LO3:Be able to implement Java solutions Assessment criteria: 
CSE 240 Lecture 10. © Lethbridge/Laganière 2001 Chapter 7: Focusing on Users and Their Tasks2 For Next time Finish Reading Chapter 6 Read Chapter 7.
Object-Oriented Software Engineering Practical Software Development using UML and C++/Java Chapter 4: Developing Requirements.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 4: Developing Requirements.
Approaching a Problem Where do we start? How do we proceed?
The Systems Development Life Cycle
Requirements as Usecases Capturing the REQUIREMENT ANALYSIS DESIGN IMPLEMENTATION TEST.
Requirements Capture. Four Steps of requirements capture List candidate requirements Understand system context Capture functional requirements Capture.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
UML-1 8. Capturing Requirements and Use Case Model.
A Use Case Primer 1. The Benefits of Use Cases  Compared to traditional methods, use cases are easy to write and to read.  Use cases force the developers.
Yarmouk University Department of Computer Information Systems CIS 499 Yarmouk University Department of Computer Information Systems CIS 499 Yarmouk University.
Systems Analysis and Design in a Changing World, 6th Edition
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 4: Developing Requirements.
CIS 112 Exam Review. Exam Content 100 questions valued at 1 point each 100 questions valued at 1 point each 100 points total 100 points total 10 each.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 4: Developing Requirements.
SYS466 Casual Use Case Specifications. Systems Use Case Diagrams and Specifications Based on the dialog metaphor Based on the dialog metaphor The process.
1 Software Requirements l Specifying system functionality and constraints l Chapters 5 and 6 ++
Lecture 2 Developing Requirements
CSE 240 Lecture 6. © Lethbridge/Laganière 2001 Chapter 5: Modelling with classes2 Overview Discuss Assignment 1(Questions) Chapter 4 - Requirements. Test.
Systems Analysis and Design in a Changing World, Fourth Edition
Winter 2007SEG2101 Chapter 31 Chapter 3 Requirements Specifications.
Requirements Engineering Process CS-862 (Spring 2013)
Requirements Analysis
Requirement engineering & Requirement tasks/Management. 1Prepared By:Jay A.Dave.
Developing Requirements. 1. Domain Analysis Domain: The general field of business or technology in which the customers expect to be using software Domain.
Object-Oriented Software Engineering Practical Software Development using UML and Java Modelling with Classes.
CSCI 383 Object-Oriented Programming & Design Lecture 7 Martin van Bommel.
5. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Describe the activities of the requirements discipline  Describe the difference.
Software engineering lec3 Requirements. Contents Developing Requirements Domain analysis The starting point for software projects Defining the problem.
7 Systems Analysis – ITEC 3155 The Object Oriented Approach – Use Cases.
Requirements. Outline Definition Requirements Process Requirements Documentation Next Steps 1.
Modified from Sommerville’s originalsSoftware Engineering, 7th edition. Chapter 14 Slide 1 Object-Oriented Design.
1 Developing Requirements Based on Chapter 4 of Object-Oriented Software Engineering: Practical Software Development using UML and Java.
Software Engineering Developing Requirements. © Lethbridge/Laganière 2001 Chapter 4: Developing requirements2 4.1 Domain Analysis The process by which.
1 Team Skill 3 Defining the System Part 1: Use Case Modeling Noureddine Abbadeni Al-Ain University of Science and Technology College of Engineering and.
Investigating System Requirements
Lecture 2 Developing Requirements
Use case diagrams A use case diagram is UML’s notation for showing the relationships among a set of use cases and actors A use case diagram can help the.
Week 10: Object Modeling (1)Use Case Model
Software Design Lecture : 15.
Presentation transcript:

Developing Requirements Adapted after : Timothy Lethbridge and Robert Laganiere, Object-Oriented Software Engineering – Practical Software Development using UML and Java, 2005 (chapter 4)

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements2 4.1 Domain Analysis Domain analysis is the process by which a software engineer learns about the application domain to better understand the problem. The domain is the general field of business or technology in which the clients will use the software A domain expert is a person who has a deep knowledge of the domain Benefits of performing domain analysis: Faster development Better system Anticipation of extensions

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements3 Suggested Structure of a Domain Analysis document A.Introduction B.Glossary C.General knowledge about the domain D.Customers and users E.The environment F.Tasks and procedures currently performed G.Competing software H.Similarities to other domains

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements4 4.2 The Starting Point for Software Projects (green field project) Four broad categories of software projects:

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements5 4.3 Defining the Problem and the Scope In order to determine the requirements, the first step is to work out an initial definition of the problem to be solved. A problem can be expressed as: A difficulty the users or customers are facing, Or as an opportunity that will result in some benefit such as improved productivity or sales. The solution to the problem normally will entail developing software. A good problem statement is short and succinct - one or two sentences is best. Example - a new student registration system: —“The system will allow students to register for courses, and change their registration, as simply ad rapidly as possible. It will help students achieve their personal goals of obtaining their degree in the shortest reasonable time while taking courses that they find most interesting and fulfilling.”

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements6 Defining the Scope An important objective is to narrow the scope by defining a more precise problem List all the things you might imagine the system doing —Exclude some of these things if too broad —Determine high-level goals (of the user / customer) if too narrow Example: A university registration system

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements7 4.4 What is a Requirement A requirement is a statement describing either 1) an aspect of what the proposed system must do, or 2) a constraint on the system’s development. In either case, it must contribute in some way towards adequately solving the customer’s problem; the set of requirements as a whole represents a negotiated agreement among all stakeholders. A requirement is a short and concise piece of information A collection of requirements is a requirements document.

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements8 4.5 Types of Requirements Functional requirements Describe what the system should do Non-functional requirements Constraints that must be adhered to during development

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements9 Functional requirements Functional requirements describe the services provided for the users and for other systems. Functional requirements can describe: What inputs the system should accept What outputs the system should produce What data the system should store that other systems might use What computations the system should perform The timing and synchronization of the above

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements10 Non-functional requirements All must be verifiable Three main types 1. Categories reflecting quality attributes: —Response time —Resource usage —Reliability —Availability —Recovery from failure —Maintainability —Reusability

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements11 Non-functional requirements 2. Categories constraining the environment and technology of the system: —Platform —Technology to be used 3. Categories constraining the project plan and development methods: —Development process (methodology) to be used —Cost and delivery date -Often put in contract or project plan instead

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements Use-Cases describing how the user will use the system A use case is a description of a set of sequences of actions, including variants, that a system performs that yields an observable result of value to a particular actor [BRJ99]. The objective of use case analysis is to model the system … from the point of view of how users interact with this system … when trying to achieve their objectives. A use case model consists of —a set of use cases —a set of actors (an actor is a coherent set of roles that users of use cases play when interacting with the use cases [BRJ99]) —an optional description or diagram indicating how they are related To make a use case model understandable, you should group similar variant sequences of actions into one use case.

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements13 Use cases In general, a use case should cover the full sequence of steps from the beginning of a task until the end. A use case should describe the user’s interaction with the system... —not the computations the system performs. A use case should be written so as to be as independent as possible from any particular user interface design. A use case should only include actions in which the actor interacts with the computer.

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements14 Scenarios A scenario is an instance of a use case, involving —a specific actor instance, —at a specific time and —using specific data.

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements15 How to describe a single use case A. Name: Give a short, descriptive name to the use case. B. Actors: List the actors who can perform this use case. C. Goals: Explain what the actor or actors are trying to achieve. D. Preconditions: State of the system before the use case. E. Description: Give a short informal description. F. Related use cases G. Steps: Describe each step (using a 2-column format: actor actions, system responses) H. Post-conditions: What state is the system in following the completion of the use case. Only the name (A) and the steps (G) are essential —In a simplified description you may omit the other components.

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements16 A simple use case diagram Graphically a use case is rendered as an ellipse, an actor is rendered as a stick person. Use case diagrams commonly contain [BRJ99]: actors, use cases, associations, generalizations and dependencies.

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements17 Extensions Used to make optional interactions explicit or to handle exceptional cases. —By creating separate use case extensions, the description of the basic use case remains simple. —In the use case extension you must -either list all the steps from the beginning of the use case to the end, including the handling of the unusual situation, -or indicate which step is the extension point (the point at which the extension changes the basic sequence).

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements18 Generalizations Generalizations (/ specializations) work the same way as in a class diagram, and use the same triangle symbol. —A generalized use case represents several similar use cases. —One or more specializations provides details of the similar use cases.

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements19 Inclusions Allow one to express commonality between several different use cases. Are included in other use cases —Even very different use cases can share sequence of actions. —Enable you to avoid repeating details in multiple use cases. Represent the performing of a lower-level task with a lower-level goal.

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements20 Example of generalization, extension and inclusion

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements21 Example description of a use case diagram

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements22 Example (continued)

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements23 Example (continued)

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements24 Example (continued)

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements25 Example (continued)

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements26 The modeling processes: Choosing use cases on which to focus Often one use case (or a very small number) can be identified as central to the system -For example, in an airline reservation system the central use case will be ‘Reserve a seat on a flight’ »The entire system can be built around this particular use case There are also other reasons for focusing on particular use cases: —Some use cases will represent a high risk because for some reason their implementation is problematic —Some use cases will have high political or commercial value

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements27 The benefits of basing software development on use cases Use cases can help to define the scope of the system. Use cases are often used to plan the development process. Use cases are used to both develop and validate the requirements. Use cases can form the basis for the definition of test cases. —A test case is a specification of one case to test the system, including what to test, with which input, expected result, and under which conditions [JBR99]. -A test case specifies a testing scenario. Use cases can be used to structure user manuals.

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements28 The benefits of basing software development on use cases The basic integration testing strategies (top-down and bottom-up) are applicable where the design is a hierarchy of modules or subsystems. —In an OO system the basic modules to be tested are object classes that are instantiated as objects. —However, in general, in an OO system there is no obvious ‘top’ to the system [Som01]. Use case or scenario based testing is often the most effective integration testing strategy for OO systems [JBR99,Som01]. In this approach the software engineer identifies testing scenarios from use cases. —A set of test cases can be identified for each use case.

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements Some Techniques for Gathering Requirements Observation Read documents and discuss requirements with users Shadowing important potential users as they do their work —ask the user to explain everything he or she is doing Session videotaping Interviewing Conduct a series of interviews —Ask about specific details —Ask about the stakeholder’s vision for the future —Ask if they have alternative ideas —Ask for other sources of information —Ask them to draw diagrams

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements30 Gathering Requirements... Brainstorming Appoint an experienced moderator Arrange the attendees around a table Decide on a ‘trigger question’. Examples of trigger questions: —What features are important in the system? —What future sources of data should we anticipate? —What outputs should be produced by the system? —What classes do we need in our domain model? Ask each participant to write an answer and pass the paper to its neighbour Joint Application Development (JAD) is a technique based on intensive brainstorming sessions

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements31 Gathering Requirements... Prototyping The simplest kind: paper prototype. —a set of pictures of the system that are shown to users in sequence to explain what would happen The most common: a mock-up of the system’s UI —Written in a rapid prototyping language —Does not normally perform any computations, access any databases or interact with any other systems —May prototype a particular aspect of the system

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements Types of Requirements Document Requirements documents for large systems are normally arranged in a hierarchy Requirements Specification xxxx xxxxxxx xxx xxxxxxxxxxx xxxxx xxxxxxxxxxxxx xxxxxxx xxx xxxxxxxxxxxxxxx Requirements Definition xxxx xxxxxxx xxx xxxxxxxxxxx xxxxx xxxxxxxxxxxxx xxxxxxx xxx xxxxxxxxxxxxxxx Requirements Specification xxxx xxxxxxx xxx xxxxxxxxxxx xxxxx xxxxxxxxxxxxx xxxxxxx xxx xxxxxxxxxxxxxxx Requirements Definition xxxx xxxxxxx xxx xxxxxxxxxxx xxxxx xxxxxxxxxxxxx xxxxxxx xxx xxxxxxxxxxxxxxx Requirements Specification xxxx xxxxxxx xxx xxxxxxxxxxx xxxxx xxxxxxxxxxxxx xxxxxxx xxx xxxxxxxxxxxxxxx Two extremes which should be avoided: An informal outline of the requirements using a few paragraphs or simple diagrams A long list of specifications that contain thousands of pages of intricate detail The term requirements definition normally refers to a less detailed, higher-level document. A requirements specification is a more detailed and precise document.

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements33 Level of detail required in a requirements document How much detail should be provided depends on: —The size of the system —The need to interface to other systems —The readership —The stage in requirements gathering —The level of experience with the domain and the technology —The cost that would be incurred if the requirements were faulty

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements Reviewing Requirements Each individual requirement should be carefully reviewed. In order to be acceptable each individual requirement should: —Have benefits that outweigh the costs of development —Be important for the solution of the current problem —Be expressed using a clear and consistent notation —Be unambiguous —Be logically consistent —Lead to a system of sufficient quality —Be realistic with available resources —Be verifiable —Be uniquely identifiable —Does not over-constrain the design of the system

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements35 Requirements documents... The requirements document should be: —sufficiently complete —well organized —clear —agreed to by all the stakeholders In a design document it should be possible to say which requirement is being implemented by a given aspect of the design. —This quality is called traceability.

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements36 Suggested structure of a requirements document A.Problem A succinct description of the problem to be solved B.Background information References to domain analysis documents, standards, related systems C.Environment and system models The context in which the system runs, a global overview of the subsystems, the hardware support, etc. D.Functional Requirements E.Non-functional requirements

© Lethbridge/Laganière 2005 Chapter 4: Developing requirements37 Additional references [BRJ99] G. Booch, J. Rumbaugh and I. Jacobson. The Unified Modeling Language User Guide. Addison-Wesley, [JBR99] I. Jacobson, G. Booch and J. Rumbaugh. The Unified Software Development Process. Addison-Wesley, [Som01] I. Sommerville. Software Engineering (6 th edition). Addison-Wesley, 2001.