Software Engineering · Unit 5
Software Process Models
Exam-focused notes for Software Process Models (Software Engineering, BIT302): what the TU syllabus asks and how it has actually been tested, with 8 solved past questions from this unit.
Software Process Models in short
A software process is the set of activities that produces a software product. Process models describe how these activities are ordered. Choosing the right model depends on how well the requirements are known and how much change is expected.
What this unit covers
- Waterfall model and its applications
- Incremental development approach
- Incremental delivery approach
- Prototyping process model
- Agile software development
- Agile principles and practices
- Process activities and improvement techniques
Process activities and improvement techniques
2082 · 10 marks
Illustrate the activities carried out within the software process model. List some techniques that can be used to improve the process.[10]
Show solved answerHide answer
Activities in the Software Process Model and Techniques for Process Improvement
Introduction
A software process model is a simplified, abstract representation of a software development process. It describes the sequence of activities, actions, and tasks performed to develop and maintain a software product. All software process models, regardless of their specific structure, incorporate four fundamental process activities.
Activities Carried Out Within the Software Process Model
A. Software Specification (Requirements Engineering)
This activity focuses on understanding and defining what services are required from the system and identifying the constraints under which it must operate and be developed.
Sub-activities include:
| Sub-Activity | Description |
|---|---|
| Feasibility Study | Determines whether the system is technically and financially viable |
| Requirements Elicitation and Analysis | Gathering requirements from stakeholders through interviews, observation, etc. |
| Requirements Specification | Formally documenting the agreed requirements |
| Requirements Validation | Checking requirements for completeness, consistency, and correctness |
The output of this stage is a Software Requirements Specification (SRS) document that serves as the contract between developers and customers.
B. Software Design and Implementation
This activity involves converting the specification into an executable system. It bridges the gap between what the system should do and how it will actually be built.
Sub-activities include:
- Architectural Design -- Identifying the overall structure of the system, the principal components (subsystems or modules), and their relationships
- Interface Design -- Defining the interfaces between system components so they can work together correctly
- Component Design -- Designing the detailed logic and functionality of each individual component
- Database Design -- Designing the data structures and how data will be stored and retrieved
- Coding / Implementation -- Translating the design into source code using a suitable programming language
C. Software Validation (Verification and Validation)
This activity ensures that the system conforms to its specification and genuinely meets the expectations and needs of the customer.
Sub-activities (Testing Stages) include:
Unit Testing
|
v
Integration Testing
|
v
System Testing
|
v
Acceptance Testing
| Testing Stage | Purpose |
|---|---|
| Unit Testing | Testing individual components or modules in isolation |
| Integration Testing | Testing combined components to detect interface errors |
| System Testing | Testing the complete, integrated system against requirements |
| Acceptance Testing | Testing with real customer data to confirm the system meets needs |
Validation asks: "Are we building the right product?" Verification asks: "Are we building the product right?"
D. Software Evolution (Maintenance)
Software must adapt to changing customer needs and environments even after initial deployment. This activity recognizes that software development is not a one-time activity but a continuous process.
Types of maintenance include:
- Corrective Maintenance -- Fixing bugs and errors discovered after deployment
- Adaptive Maintenance -- Modifying the system to work in a new or changed environment (e.g., new OS, new hardware)
- Perfective Maintenance -- Adding new features or improving existing functionality and performance
- Preventive Maintenance -- Restructuring or rewriting code to prevent future problems
Diagram: The Four Core Activities
+------------------+ +------------------+ +------------------+ +------------------+
| Specification | --> | Design and | --> | Validation | --> | Evolution |
| (Requirements) | | Implementation | | (Testing) | | (Maintenance) |
+------------------+ +------------------+ +------------------+ +------------------+
^ |
|___________________________________________________________________________|
(Feedback and Change Requests)
Techniques to Improve the Software Process
Once the process is understood, organizations apply systematic techniques to improve quality, reduce cost, and increase efficiency.
1. Process Measurement and Metrics
- Collecting quantitative data such as defect rates, time per activity, cost per module, and productivity
- Metrics provide an objective basis for identifying weaknesses and tracking improvement over time
2. Process Analysis
- Analyzing the current process to identify bottlenecks, redundancies, and inefficiencies
- Techniques include process modeling and workflow analysis
3. Process Change and Optimization
- Introducing targeted changes to address problems identified during analysis
- Changes may involve reordering activities, adding new checkpoints, or removing unnecessary steps
4. CMM / CMMI (Capability Maturity Model Integration)
- A framework that defines five maturity levels (Initial, Managed, Defined, Quantitatively Managed, Optimizing) to guide organizations in systematically improving their processes
- Organizations assess their current level and work toward higher levels of process maturity
5. Automation of Process Activities
- Using CASE (Computer-Aided Software Engineering) tools, CI/CD pipelines, automated testing frameworks, and build tools to reduce manual effort and human error
6. Peer Reviews and Inspections
- Conducting formal code reviews, walkthroughs, and inspections to detect defects early, before they propagate to later stages where they are more costly to fix
7. Training and Skill Development
- Regularly training team members in new technologies, methodologies, and best practices to improve overall team capability
8. Adopting Best Practices and Methodologies
- Applying proven methodologies such as Agile, Lean Software Development, or Six Sigma to streamline processes and reduce waste
9. Feedback Loops and Retrospectives
- Collecting feedback after each iteration or project phase and using it to continuously refine and improve the process for future cycles
Conclusion
The software process model is built around four core activities: Specification, Design and Implementation, Validation, and Evolution. Each activity plays a critical role in delivering a high-quality software product. By applying improvement techniques such as process measurement, CMMI frameworks, automation, peer reviews, and continuous feedback, organizations can systematically enhance their software development process, leading to higher quality products, reduced costs, and improved team efficiency.
Prototyping process model
2081 · 10 marks
Explain process model for software prototype development with a neat diagram focusing on its different stages.[10]
Agile principles and practices
2081 · 5 marks
What are the basic principles of agile methods? Explain. [5]
Incremental delivery approach
2080 · 10 marks
Explain incremental delivery approach to software development with a neat diagram.[10]
Agile software development
2080 · 5 marks
Write short notes on: a. Agile software development b. Context model [5]
Show solved answerHide answer
Short Notes
a. Agile Software Development
Agile software development is an iterative and incremental approach to software development that focuses on delivering working software quickly, responding to change, and close collaboration between developers and customers.
Key Principles (Agile Manifesto):
- Individuals and interactions over processes and tools
- Working software over comprehensive documentation
- Customer collaboration over contract negotiation
- Responding to change over following a plan
Characteristics:
- Development is done in short cycles called sprints or iterations (typically 2-4 weeks)
- Requirements are allowed to evolve throughout the project
- Continuous feedback from the customer is incorporated
- Self-organizing, cross-functional teams work together
- Regular reflection and adaptation of processes
Popular Agile Methods:
- Scrum - uses sprints, daily stand-ups, sprint reviews
- Extreme Programming (XP) - focuses on coding practices
- Kanban - visual workflow management
Advantages:
- Faster delivery of working software
- Better adaptability to changing requirements
- Higher customer satisfaction
b. Context Model
A context model is used to illustrate the operational context of a system - it shows what lies outside the system boundaries (the environment in which the system operates) and defines what is included in and excluded from the system.
Purpose:
- To define the system boundary
- To identify external entities (other systems, people, organizations) that interact with the system
- To show the relationships and interactions between the system and its environment
Key Features:
- It does not show the nature of the relationships in detail
- It helps stakeholders understand the scope of the system
- External entities are shown as boxes or actors outside the system boundary
Example Representation:
[Payroll System] <---> [Employee Database]
[Payroll System] <---> [Bank System]
[Payroll System] <---> [HR Manager]
Types of Models Used:
- Activity diagrams can supplement context models to show how the system is used in business processes
- UML use case diagrams can also represent context
Importance:
- Helps avoid scope creep by clearly defining boundaries
- Assists in identifying all external dependencies
- Provides a foundation for further detailed modeling
Incremental development approach
2079 · 10 marks
How can incremental development help in software production? Explain. What are its advantages and disadvantages?[10]
Waterfall model and its applications
2079 · 5 marks
Briefly explain waterfall model. When should we use water fall model? [5]
Make Unit 5 stick
Practice BIT302 with flashcards & quizzes