Class BoilerComponent

java.lang.Object
org.jreliability.tutorial.boiler.BoilerComponent
Direct Known Subclasses:
Controller, Heater, Pump, Sensor

public abstract class BoilerComponent extends Object
The abstract BoilerComponent is the basic class that models each of the components used in the model of the Boiler.
  • Field Details

    • name

      protected final String name
      The name of the component.
  • Constructor Details

    • BoilerComponent

      public BoilerComponent(String name)
      Constructs a BoilerComponent with a given name.
      Parameters:
      name - the name of the component
  • Method Details

    • getName

      public String getName()
      Returns the name of the component.
      Returns:
      the name of the component
    • toString

      public String toString()
      Overrides:
      toString in class Object