Package org.jreliability.tutorial.boiler
Class Sensor
- java.lang.Object
-
- org.jreliability.tutorial.boiler.BoilerComponent
-
- org.jreliability.tutorial.boiler.Sensor
-
public class Sensor extends BoilerComponent
TheSensor
models a sensor component in the boiler that measures and collects the data of the water temperature.
-
-
Field Summary
-
Fields inherited from class org.jreliability.tutorial.boiler.BoilerComponent
name
-
-
Method Summary
-
Methods inherited from class org.jreliability.tutorial.boiler.BoilerComponent
getName, toString
-
-
-
-
Constructor Detail
-
Sensor
public Sensor(java.lang.String name)
Constructs aSensor
with a given name.- Parameters:
name
- the name of the sensor
-
-