Package org.jreliability.tutorial.boiler
Class BoilerComponent
- java.lang.Object
-
- org.jreliability.tutorial.boiler.BoilerComponent
-
- Direct Known Subclasses:
Controller
,Heater
,Pump
,Sensor
public abstract class BoilerComponent extends java.lang.Object
The abstractBoilerComponent
is the basic class that models each of the components used in the model of theBoiler
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
name
The name of the component.
-
Constructor Summary
Constructors Constructor Description BoilerComponent(java.lang.String name)
Constructs aBoilerComponent
with a given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Returns the name of the component.java.lang.String
toString()
-
-
-
Constructor Detail
-
BoilerComponent
public BoilerComponent(java.lang.String name)
Constructs aBoilerComponent
with a given name.- Parameters:
name
- the name of the component
-
-