© 2006-07 Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Approaching a.

Slides:



Advertisements
Similar presentations
Requirements Specification and Management
Advertisements

Software Modeling SWE5441 Lecture 3 Eng. Mohammed Timraz
Practical Business Modeling in the Unified Process Tom Morgan Software Architect, Fidelity National Information Services
Requirements Analysis CS 414 – Software Engineering I Donald J. Bagert Rose-Hulman Institute of Technology January 7, 2003.
Use-case Modeling.
CAP 252 Lecture Topic: Requirement Analysis Class Exercise: Use Cases.
The Unified Software Development Process - Workflows Ivar Jacobson, Grady Booch, James Rumbaugh Addison Wesley, 1999.
Computer Engineering 203 R Smith Requirements Management 6/ Requirements IEEE Standard Glossary A condition or capability needed by a user to solve.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
R R R CSE870: Advanced Software Engineering: Extending and Using UML (Cheng, Sp2003) Supplementary: Using and Extending UML.
SE 555 Software Requirements & Specification Beyond Requirements Based on Weigers Chapter17.
Software Engineering CSE470: Requirements Analysis 1 Requirements Analysis Defining the WHAT.
University of Toronto Department of Computer Science © Steve Easterbrook. This presentation is available free for non-commercial use with attribution.
SE 555 Software Requirements & Specification Requirements Validation.
© Copyright Eliyahu Brutman Programming Techniques Course.
IS550: Software requirements engineering Dr. Azeddine Chikh 4. Validation and management.
The Software Product Life Cycle. Views of the Software Product Life Cycle  Management  Software engineering  Engineering design  Architectural design.
1 CMPT 275 Software Engineering Requirements Analysis Process Janice Regan,
Software Life Cycle Model
USE Case Model.
Chapter 4 Requirements Engineering
Requirements Elicitation. Requirement: a feature or constraint that the system must satisfy Requirements Elicitation: specification of the system that.
S/W Project Management
Why Analysis Process Refer to earlier chapters Models what the system will do makes it easier for understanding no environment considered (hence, system.
Advanced Topics in Requirement Engineering. Requirements Elicitation Elicit means to gather, acquire, extract, and obtain, etc. Requirements elicitation.
المحاضرة الثالثة. Software Requirements Topics covered Functional and non-functional requirements User requirements System requirements Interface specification.
Feasibility Study.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 7 Slide 1 Requirements Engineering Processes.
Requirements Engineering Requirements Elicitation Process Lecture-8.
IS 466 ADVANCED TOPICS IN INFORMATION SYSTEMS LECTURER : NOUF ALMUJALLY 22 – 10 – 2011 College Of Computer Science and Information, Information Systems.
Approaching a Problem Where do we start? How do we proceed?
Lecture 7: Requirements Engineering
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.
Notes of Rational Related cyt. 2 Outline 3 Capturing business requirements using use cases Practical principles  Find the right boundaries for your.
UML-1 3. Capturing Requirements and Use Case Model.
Review of Software Process Models Review Class 1 Software Process Models CEN 4021 Class 2 – 01/12.
UML-1 8. Capturing Requirements and Use Case Model.
Requirements Collection By Dr. Gabriel. Requirements A requirement is any function, constraint, or property that the system must provide, meet, or satisfy.
1 Capturing Requirements As Use Cases To be discussed –Artifacts created in the requirements workflow –Workers participating in the requirements workflow.
1 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Use cases.
1 Software Requirements l Specifying system functionality and constraints l Chapters 5 and 6 ++
Requirements Management with Use Cases Module 10: Requirements Across the Product Lifecycle Requirements Management with Use Cases Module 10: Requirements.
Software Engineering 1 Object-oriented Analysis and Design Applying UML and Patterns An Introduction to Object-oriented Analysis and Design and Iterative.
Systems Development Life Cycle
Where do we start? How do we proceed?
Copyright ©2004 Virtusa Corporation | CONFIDENTIAL Requirement Engineering Virtusa Training Group 2004 Trainer: Ojitha Kumanayaka Duration : 1 hour.
1 Chapter 8 Building the Analysis Model (1) Analysis Concepts and Principles.
Requirement Engineering. Recap Elaboration Behavioral Modeling State Diagram Sequence Diagram Negotiation.
Winter 2011SEG Chapter 11 Chapter 1 (Part 1) Review from previous courses Subject 1: The Software Development Process.
Ivar Jacobson, Grady Booch, and James Rumbaugh The Unified Software Development Process Addison Wesley, : James Rumbaugh's OOMD 1992: Ivar Jacobson's.
Requirement Engineering
Software Requirements Specification Document (SRS)
Requirements engineering The process of establishing the services that the customer requires from a system and the constraints under which it operates.
Requirement engineering & Requirement tasks/Management. 1Prepared By:Jay A.Dave.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
Software Development Process CS 360 Lecture 3. Software Process The software process is a structured set of activities required to develop a software.
OOD OO Design. OOD-2 OO Development Requirements Use case analysis OO Analysis –Models from the domain and application OO Design –Mapping of model.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
Chapter 7 Part II Structuring System Process Requirements MIS 215 System Analysis and Design.
Requirements. Outline Definition Requirements Process Requirements Documentation Next Steps 1.
Dillon: CSE470: ANALYSIS1 Requirements l Specify functionality »model objects and resources »model behavior l Specify data interfaces »type, quantity,
 System Requirement Specification and System Planning.
Engineering Quality Software Week02 J.N.Kotuba1 SYST Engineering Quality Software.
Unified Modeling Language
By Dr. Abdulrahman H. Altalhi
Requirements Analysis aka Requirements Engineering
Chapter 2 – Software Processes
Copyright 2007 Oxford Consulting, Ltd
Engineering Quality Software
Presentation transcript:

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Approaching a Problem Where do we start? How do we proceed?

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Where Do We Start? Start with the requirements –Capture your goals and possible constraints –Environmental assumptions Use-case analysis to better understand your requirements –Find actors and a first round of use-cases Start conceptual modeling –Conceptual class diagram –Interaction diagrams to clarify use-cases –Activity diagrams to understand major processing

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. How Do We Continue? Refine use-cases –Possibly some “real” use-cases Using interface mockups Refine (or restructure) your class diagram –Based on your hardware architecture For instance, client server Refine and expand your dynamic model –Until you are comfortable that you understand the required behavior Identify most operations and attributes

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. How Do We Wrap Up? Refine the class diagram based on platform and language properties –Navigability, public, private, etc –Class libraries Identify most operations –Not the trivial get, set, etc. Write a contract for each operation Define a collection of invariants for each class Implement

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Putting It Together Principles –Rigor and Formality –Separation of Concerns –Modularity –Abstraction –Anticipation of Change –Generality –Incrementality Notion of Process

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Waterfall Approach Gather Requirements Gather Requirements Generate Design Generate Design Requirements Documents Requirements Documents Design Documents Design Documents Write Code Write Code Implementation Test Domain language Models, technical language

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Frequent Industrial Approach Gather Requirements Gather Requirements Generate Design Generate Design Requirements Documents Requirements Documents Design Documents Design Documents Write Code Write Code Implementation Test Prototypes

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Sensible Approach Gather Requirements Gather Requirements Generate Design Generate Design Requirements Documents Requirements Documents Design Documents Design Documents Write Code Write Code Implementation Test Prototypes iterate

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Process Overview Inception Elaboration Construction –Many iterations Transition InceptionElaboration Construction 1Construction 2Construction 3Construction n Transition

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Requirements Analysis Defining the WHAT

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Requirements Elicitation Process System Client Domain Client Problem Us SRS

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Requirements Specify functionality –model objects and resources –model behavior Specify data interfaces –type, quantity, frequency, reliability –providers, receivers –operational profile (expected scenarios) –stress profile (worst case scenarios)

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Requirements Specify interfaces –Control interfaces (APIs) –User interfaces - functionality and style –Hardware interfaces Specify error handling Identify potential modifications

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Requirements Identify necessary constraints –performance, security, reliability Identify areas of risk –alternatives to be explored Specify validation plans Specify documentation to be provided

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Analysis Principles Document reason for specific requirements Prioritize requirements –High, medium, low Ignore implementation details –Need to know feasible solutions can be developed –If feasibility is a concern, then propose alternatives to be explored Be prepared to change

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Perspective and Early Binding of Constraints A A BCBC Connect like letters without crossing lines or leaving box.

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Early Focus on Constraints A-A line seems to be only solution –But, is it really? –Need to examine domain and constraints more? What transforms or shifts would yield easier problem? A A BCBC Early choice, eliminates C,B

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Focus Change A A BCBC These choices still leave a path between A’s A A BCBC Transforms to:

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Reviewing a requirements document Is it ambiguous? –Carefully define terms and use these terms Is it consistent? Is it complete? –Vague requirements –Omitted requirements Is it verifiable? Is it realistic? Does it plan for change? Does it not overly constrain the problem? Have alternatives been considered and explored? Is it clearly presented? –Precise, concise, clear –diagram complex objects and behaviors Is it what the customer wants?

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Why is requirements analysis difficult? Communication: misunderstandings between the customer and the analyst –Analyst doesn’t understand the domain –Customer doesn’t understand alternatives and trade- offs Problem complexity –Inconsistencies in problem statement –Omissions/incompleteness in problem statement –Inappropriate detail in problem statement

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Escalator System Requirements Shoes Must Be Worn Shoes Must Be Worn Dogs Must Be Carried Dogs Must Be Carried Two Signs on Escalator: You must have on shoes, and you must be carrying a dog. If you have a dog, you have to carry it, so you have to wear all the shoes you are carrying. If you have a dog, you have to carry it, so you have to wear all the shoes you are carrying. If you don’t have a dog, you don’t need to carry it, so you don’t have to wear shoes unless you are carrying some. If you don’t have a dog, you don’t need to carry it, so you don’t have to wear shoes unless you are carrying some. Consistent Conclusions:

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Why is requirements analysis difficult? Need to accommodate change –Hard to predict change –Hard to plan for change –Hard to foresee the impact of change

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. First Law of Software Engineering “ No matter where you are in the system lifecycle, the system will change, and the desire to change it will persist throughout the lifecycle.”

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Reasons for changing requirements Poor communication Inaccurate requirements analysis Failure to consider alternatives New users New customer goals New customer environment New technology Competition Software is seen as malleable Changes made after the requirements are approved increase cost and schedule

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Requirements Products Specification document –Agreement between customer and developer –Validation criteria for software –Problem statement in domain language external behavior constraints on system Preliminary users manual Prototype (do not deliver the prototype!) –If user interaction is important –If resources are available Review by customer and developer –Iteration is almost always required

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Overview: Steps to Follow Map out environment as-is Map out environment as required Decide on systems boundaries / goals List actions with types Define terms Construct model Challenge model Modify as required

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Analysis: Steps to follow Obtain a problem statement Develop use cases (depict scenarios of use) Build an object model and data dictionary Develop a dynamic model –state and sequence diagrams Verify, iterate, and refine the models Produce analysis document

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Use Cases High-level overview of system use Identify scenarios of usage Identify actors of the system: –External entities (e.g., users, systems, etc.) Identify system activities Draw connections between actors and activities Identify dependencies between activities (i.e., extends, uses)

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Analysis: Object Model Organization of system into classes connected by associations –Shows the static structure –Organizes and decomposes system into more manageable subsystems –Describes real world classes and relationships

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Analysis: Object Model Object model precedes the dynamic model because –static structure is usually better defined –less dependent on details –more stable as the system evolves

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Analysis: Object Model Information comes from –The problem statement and use cases –Expert knowledge of the application domain Interviews with customer Consultation with experts Outside research performed by analyst –General knowledge of the real world

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Client View of Domain Clients can’t be expected to have rigorous or formal view of domain Hence, can’t be expected to be completely aware of domain-problem relationship Some knowledge is explicit –Easier to get at Some knowledge is implicit (“everybody knows…”) –Many constraints are implicit –Hard to get at

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Object Model: Steps to follow Identify classes and associations –nouns and verbs in a problem description Create data dictionary entry for each Add attributes Combine and organize classes using inheritance

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Analysis: Dynamic model Shows the time dependent behavior of the system and the objects in it Expressed in terms of –states of objects and activities in states – events and actions State diagram summarizes permissible event sequences for objects with important dynamic behavior

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Dynamic Model: Steps to follow Use cases provide scenarios of typical interaction sequences Identify events between objects (Sequence Diagram) Prepare an event trace for each scenario Build state diagrams Match events between objects to verify consistency Do this

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Analysis: Iteration Analysis model will require multiple passes to complete Look for inconsistencies and revise Look for omissions/vagueness and revise Validate the final model with the customer –Pose scenarios from various perspectives Look for consistency in responses

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Object Model: Four main system objects or classes Controller object –might be made up of several controllers –is the brains of the system. –Takes input from the sensors and gives instructions to the actuators. Sensor object –environmental objects that gives information to controller. –Can be passive (thermometer) or active (button).

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Meeting Purposes Disseminate information (including stating a problem) Gathering opinions Confirming consensus Social requirements –team building –approval

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Meeting Requirements Agenda Leader Action list –With assignments so we know who is doing what. –Timelines so we know when it’s to get done. Summary –Something happened or there would not have been a meeting. Record it briefly.

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Project Issue List Every issue goes on the list –Date and brief description Make assignment to get it resolved Put resolution on list. –“Close” issue. 1st version usually generated on 1st read of problem statement. –And then, back to the customer...

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Interviewing Have a list of things you want to know. Listen. Ask open-ended questions. Don’t express (show, say) opinions on answers. Just record, and think. Listen. Ask questions more than one way.

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Close-ended questions Q: When a vehicle cuts in front of the car, you have to slow down quickly and not hit it, right? A: Yes. You learned absolutely nothing.

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Open-ended questions Q: Tell me what happens when a car cuts in front of you. A: Well, if the lead car is too close, the driver has to intervene or else a crash results. I guess we need a warning light in this case. If the car is moving faster, you don’t have to do anything. He’s pulling away. I guess the only time brakes are used is when the closing speed is too high for the distance and yet within the capabilities of the system to slow down. But I guess if a collision is imminent, we should max out the braking. Now, we learned something... Ah ha!, new requirement! And a clarification

© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Responses Q: Tell me what should happen if a car cuts in front of our car too close to avoid a collision? A: I guess since there is nothing the system can do. Turn off the controller and hope the driver brakes in time. Q: We have quite a bit of braking power in the system. What would happen if we used it here? A: Well, I guess it could avoid a collision and at least get the car slowed down but the attorneys tell me we don’t want the system active when a collision occurs. Q: What? Are you nuts? We should at least try to stop. Shouldn’t we? A: Perhaps... Not good Much better You are done at at this point, and still unresolved. Ah ha! Non-technical constraint