A software process model describes the order and the connection of the activities needed to build software. The first group of models is the most traditional.
Software Processes
A software process is a set of activities that produce a software product. The basic activities common to all processes are specification, which defines what the software does, design and implementation, which makes the software, validation, which checks that it does what the customer wants, and evolution, which changes it to meet new needs. A process model is a simplified description of a process from one point of view.
Definition: Process model. An abstract, simplified representation of a software process, showing the order of its activities.
The Waterfall Model
In the waterfall model the activities are arranged in a sequence: requirements analysis and specification, design, coding and unit testing, integration and system testing, and operation and maintenance. A phase is begun when the earlier one is complete, and each produces a document. The strengths are that it is simple, has defined milestones and produces good documentation. The weaknesses are that it assumes that all requirements are known at the start, a working product appears late, and changes are difficult and costly. It suits small projects with clearly understood and stable requirements.
The Prototype Model
In the prototype model a working sample of the software is built early, to help the customer and the developer understand the requirements. The steps are to collect the initial requirements, build a quick design, build the prototype, let the customer evaluate it, refine the requirements, and repeat until the customer is satisfied. The prototype may be thrown away, or evolved into the real product. The benefits are that requirements are clearer and users take part early. The risks are that customers may expect the quick prototype to become the final system, and that poor design choices made for speed may stay in the product.
Iterative Enhancement Model
In the iterative enhancement model the system is built in a series of steps. It begins with a simple working version of a part of the system, and each following iteration adds functionality, guided by a project control list, which lists the tasks yet to be done. Each iteration has its own design, coding and testing, and delivers a working version. It is useful when a full set of requirements is not available at the beginning, and it gives early partial delivery. The danger is that the structure of the system may degrade if the early design did not allow for later growth.
Table 1.3: Waterfall, prototype and iterative enhancement
| Aspect | Waterfall | Prototype | Iterative enhancement |
|---|---|---|---|
| Requirements | Known at start | Unclear at start | Partly known |
| Delivery | At the end | Sample early | Working versions in steps |
| Change | Hard | Easy early | Moderate |
| Customer involvement | Low | High | Medium |
Example 1.3: Choosing a model
Problem: A hospital wants a patient registration screen, but the staff are not sure about the fields and layout. Which of the three models is best?
Solution:
- The requirements are unclear and depend on how the staff react to the screen.
- A prototype lets the staff try a sample and give feedback.
Result: The prototype model is best.
Common mistakes
- Using the waterfall model for a project in which the customer cannot state the requirements.
- Delivering the throw-away prototype as the final product.
- Having no project control list in iterative enhancement, so that the work becomes unplanned.
Key takeaways
- Waterfall is linear and suits stable requirements.
- A prototype clarifies unclear requirements.
- Iterative enhancement grows the system in steps from a simple working version.
- The project control list holds the tasks still to be done.
Practice questions
- When is the prototype model suitable?
- What is the project control list?
- Give one weakness of the waterfall model.
Answers to the practice questions
- When the requirements are unclear and the customer needs to see a sample.
- The list of tasks yet to be done in iterative enhancement.
- It assumes that all requirements are known at the start, and changes are costly.
Sources
- Official BCA syllabus Advanced Software Engineering, course code 25BCA405DS01, Unit I
