Package org.jreliability.tutorial.boiler
Class Boiler
java.lang.Object
org.jreliability.tutorial.boiler.Boiler
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 Summary
FieldsModifier and TypeFieldDescriptionprotected List<BoilerComponent> All components that are included in theBoiler.protected ControllerThe controller.protected HeaterThe water heater.protected PumpThe first pump.protected PumpThe second pump.protected SensorThe first temperature sensor.protected SensorThe second temperature sensor.protected BoilerTransformerThe usedBoilerTransformer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Returns theReliabilityFunctionthat represents theBoiler.Returns the components of theBoiler.getTerm()Returns theBoilerTransformer.
-
Field Details
-
sensor1
The first temperature sensor. -
sensor2
The second temperature sensor. -
controller
The controller. -
heater
The water heater. -
pump1
The first pump. -
pump2
The second pump. -
components
All components that are included in theBoiler. -
transformer
The usedBoilerTransformer.
-
-
Constructor Details
-
Boiler
public Boiler()Constructs aBoiler.
-
-
Method Details
-
getTerm
- Returns:
- the term representation of the boiler
-
get
Returns theReliabilityFunctionthat represents theBoiler.- Returns:
- the reliability function of the boiler
-
getComponents
Returns the components of theBoiler.- Returns:
- the components
-
getTransformer
Returns theBoilerTransformer.- Returns:
- the transformer
-