21.01.2022 Views

Sommerville-Software-Engineering-10ed

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

350 Chapter 12 ■ Safety engineering

Incorrect

insulin dose

administered

or

Incorrect

sugar level

measured

Correct dose

delivered at

wrong time

Delivery

system

failure

or

or

Sensor

failure

Sugar

computation

error

Timer

failure

Insulin

computation

incorrect

Pump

signals

incorrect

or

or

Figure 12.5 An

example of a

fault tree

Algorithm

error

Arithmetic

error

Algorithm

error

Arithmetic

error

may not respond correctly to commands specifying the amount of insulin to be

injected. Alternatively, (3) the dose may be correctly computed, but it is delivered

too early or too late.

2. The left branch of the fault tree, concerned with incorrect measurement of the

blood sugar level, identifies how this might happen. This could occur either

because the sensor that provides an input to calculate the sugar level has failed or

because the calculation of the blood sugar level has been carried out incorrectly.

The sugar level is calculated from some measured parameter, such as the conductivity

of the skin. Incorrect computation can result from either an incorrect algorithm

or an arithmetic error that results from the use of floating-point numbers.

3. The central branch of the tree is concerned with timing problems and concludes

that these can only result from system timer failure.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!