Class Boiler

java.lang.Object
org.jreliability.tutorial.boiler.Boiler

public class Boiler extends Object
The Boiler models a boiler that is responsible for keeping the water in a tank at the desired temperature and pumping it to a destination if needed.

The Boiler consists of two Sensors that measure the water temperature, a Controller that activates and deactivates a Heater to control the water temperature as well as it activates and deactivates one of two available Pumps to pump the water to its destination if needed.

The non-minimized boolean function that describes whether this system works correctly (evaluates to 1) or fails (evaluates to 0) is as follows:
((Sensor1 AND Sensor2) AND Controller) AND (Controller AND Heater) AND (Controller AND (Pump1 OR Pump2))

  • Field Details

    • sensor1

      protected Sensor sensor1
      The first temperature sensor.
    • sensor2

      protected Sensor sensor2
      The second temperature sensor.
    • controller

      protected Controller controller
      The controller.
    • heater

      protected Heater heater
      The water heater.
    • pump1

      protected Pump pump1
      The first pump.
    • pump2

      protected Pump pump2
      The second pump.
    • components

      protected List<BoilerComponent> components
      All components that are included in the Boiler.
    • transformer

      protected BoilerTransformer transformer
  • Constructor Details

    • Boiler

      public Boiler()
      Constructs a Boiler.
  • Method Details