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 Sensor
s 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 Pump
s 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 Controller
The controller.protected Heater
The water heater.protected Pump
The first pump.protected Pump
The second pump.protected Sensor
The first temperature sensor.protected Sensor
The second temperature sensor.protected BoilerTransformer
The usedBoilerTransformer
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
Returns theReliabilityFunction
that 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 theReliabilityFunction
that represents theBoiler
.- Returns:
- the reliability function of the boiler
-
getComponents
Returns the components of theBoiler
.- Returns:
- the components
-
getTransformer
Returns theBoilerTransformer
.- Returns:
- the transformer
-