These models deal with the problems of long delivery times, of risk and of reuse. They are used in situations in which the simple models of the last topic are not enough.

The Time Boxing Model

Time boxing fixes the duration of each iteration, which is called a time box, usually between two and six weeks, and decides the features that fit in it. If the work is running late, the scope is reduced and the deadline is kept. Each time box is divided into stages of equal length, such as requirements, build and deploy, and the work is done in a pipeline in which several teams work at the same time on consecutive time boxes. As a result, the delivery is quick and regular. It needs that the requirements of each box be small enough and that the team be experienced.

Definition: Time boxing. A development approach in which each iteration has a fixed duration, and the scope of the iteration is adjusted to meet the fixed deadline.

The Spiral Model

The spiral model, proposed by Boehm, is a risk-driven model. The project passes round a spiral, and each loop has four quadrants: determine the objectives, alternatives and constraints, evaluate the alternatives and resolve the risks, develop and verify the next level of the product, and plan the next phase. Risk analysis in each loop decides whether to continue, and prototypes are used to reduce the risk. It suits large and risky projects. It is costly and needs expertise in risk assessment, and so is not suited to small and low-risk work.

The RAD Model

Rapid Application Development (RAD) is a high-speed form of the incremental model, aimed at delivery within 60 to 90 days. It uses component-based construction and reuse. The phases are business modeling, data modeling, process modeling, application generation, using fourth-generation tools and reusable components, and testing and turnover, in which only new components need full testing. RAD requires well-understood requirements, a project that can be divided into modules, a small team with strong skills, and active user involvement. It is unsuitable for large systems and where technical risk is high.

Object-Oriented Models

In object-oriented models, the system is built around objects, which combine data and the operations on the data. The process is iterative and uses the ideas of classes, inheritance and polymorphism. Because classes can be reused, the component-based approach is used with a library of classes. The steps are object-oriented analysis, design, implementation using an object-oriented language, and testing, which are repeated for each increment. The models support reuse and easy change, but they need good class libraries and trained people.

Table 1.4: Comparison of process models

Model Main idea Best when Weakness
Waterfall Linear phases Stable requirements Inflexible
Prototype Sample to clarify needs Unclear requirements Throw-away cost
Time boxing Fixed duration iterations Quick regular delivery Needs experienced team
Spiral Risk analysis each loop Large, risky projects Costly
RAD Fast, component based Modular small projects Not for large systems
Object-oriented Objects and reuse Reusable classes exist Needs class library

Example 1.4: Choosing among models

Problem: Choose a process model for (a) a defence project with high technical risk and a large budget, and (b) a small web application with reusable components, to be delivered in 80 days.

Solution:

  1. High risk and a large budget suit the spiral model, which analyses risk in each loop.
  2. Reuse, small size and a short deadline suit the RAD model.

Result: (a) the spiral model and (b) the RAD model.

Common mistakes

  • Using the RAD model for a large system with high technical risk.
  • Extending the deadline of a time box instead of reducing its scope.
  • Choosing the spiral model for a small project in which risk analysis costs more than the risk.

Key takeaways

  • Time boxing fixes the duration and adjusts the scope.
  • The spiral model adds risk analysis to every loop.
  • RAD delivers in 60 to 90 days using reusable components.
  • Object-oriented models are built around reusable classes.

Practice questions

  1. What is a time box?
  2. What are the phases of RAD?
  3. Why is the spiral model called risk driven?

Answers to the practice questions

  1. A fixed-length iteration whose scope is adjusted to meet the deadline.
  2. Business, data and process modeling, application generation, and testing and turnover.
  3. Because each loop begins with the analysis of risk, which decides whether to continue.

Sources

  • Official BCA syllabus Advanced Software Engineering, course code 25BCA405DS01, Unit I