๐ Requirements Engineering: Use Cases & Prototyping (OOAD)
๐น 1. Definition of Requirements Engineering
Requirements Engineering (RE) is the process of collecting, analyzing, documenting, and validating what a software system should do.
๐ Simple idea:
It answers: โWhat does the user want?โ
๐น 2. Key Activities in Requirements Engineering
- Elicitation โ Gathering requirements
- Analysis โ Understanding and refining
- Specification โ Documenting clearly
- Validation โ Checking correctness
โญ PART A: USE CASES
๐น 3. What is a Use Case?
A Use Case describes how a user (actor) interacts with a system to achieve a specific goal.
๐ It shows functional requirements in a simple way.
๐น 4. Components of a Use Case
| Component |
Description |
| Actor |
User or external system |
| Use Case |
Function (e.g., Login, Withdraw Cash) |
| System |
The software being developed |
| Scenario |
Step-by-step interaction |
๐น 5. Use Case Diagram (UML)
Wikipedia
Definition:
A graphical representation of actors and their interactions with the system.
Diagram Description:
- Stick figures โ Actors
- Ovals โ Use cases
- Lines โ Interaction
๐น 6. Types of Actors
- Primary Actor: Initiates interaction
- Secondary Actor: Supports the system
๐น 7. Relationships in Use Cases
๐ธ 7.1 Include Relationship
- One use case always includes another
Example:
Withdraw Money โ includes โ Authenticate User
๐ธ 7.2 Extend Relationship
Example:
Login โ extends โ Two-Factor Authentication
๐ธ 7.3 Generalization
- Inheritance among actors/use cases
๐น 8. Use Case Scenario (Step-by-Step)
๐ Example: ATM Withdraw Money
- User inserts card
- System asks for PIN
- User enters PIN
- System verifies
- User selects withdraw
- Cash is dispensed
๐น 9. Advantages of Use Cases
- Easy to understand
- Focus on user perspective
- Helps in communication
- Identifies system functionality
โญ PART B: PROTOTYPING
๐น 10. What is Prototyping?
Prototyping is the process of creating a working model (sample system) to understand and refine requirements.
๐ Simple idea:
Build a small version first, improve later.
๐น 11. Types of Prototypes
๐ธ 11.1 Throwaway (Rapid) Prototype
- Built quickly and discarded
- Used to understand requirements
๐ธ 11.2 Evolutionary Prototype
- Continuously refined into final system
๐ธ 11.3 Incremental Prototype
๐น 12. Prototyping Process
Identify Requirements โ Build Prototype โ User Evaluation โ Refine โ Final System
๐น 13. Advantages of Prototyping
- Early user feedback
- Reduces misunderstanding
- Improves system usability
- Detects errors early
๐น 14. Disadvantages of Prototyping
- Can increase cost/time if misused
- Users may expect final system too early
- Poor design if rushed
๐น 15. Use Cases vs Prototyping
| Feature |
Use Cases |
Prototyping |
| Focus |
Functional behavior |
System appearance & interaction |
| Form |
Text/Diagram |
Working model |
| Purpose |
Understanding requirements |
Validating requirements |
๐น 16. Example (Library System)
๐น Use Case:
- Actor: Member
- Use Case: Borrow Book
๐น Prototype:
-
Simple UI showing:
- Book search
- Borrow button
๐น 17. Important Rules / Tips
- Use cases should be clear and simple
- Focus on user goals
- Prototype should be quick and flexible
- Always get user feedback
๐น 18. Likely Exam Questions
- Define Requirements Engineering.
- What is a Use Case? Explain with example.
- Draw and explain a Use Case Diagram.
- Explain include and extend relationships.
- What is prototyping?
- Types of prototypes in software development.
- Advantages and disadvantages of prototyping.
- Difference between use cases and prototyping.
- Explain ATM use case scenario.
- Describe the prototyping process.
๐น 19. Quick Revision Summary ๐ง
- Requirements Engineering = Understanding user needs
Use Cases:
- Actor + Interaction
- Show system functionality
- Include, Extend relationships
Prototyping:
-
Early working model
-
Types:
- Throwaway
- Evolutionary
- Incremental
๐ Trick to Remember:
"UP" โ Use Cases + Prototyping