Class hvac

java.lang.Object
  |
  +--hvac

public class hvac
extends java.lang.Object

Describes the characteristics of a HVAC system, and provides related mtehods.


Constructor Summary
hvac(double hcop, double ccop, double th, double tc, Utility heating_util, Utility cooling_util)
          Creates an instance of the hvac class, given the COP of the heating system, the COP of the cooling system, the heating set temperature, the cooling set temperature, a Utility object representing the source of heating energy, a Utility object representing the source of cooling energy.
 
Method Summary
 double getCoolingCOP()
          Returns the current Coefficient of Performance for cooling.
 double getCoolingCost(double kwh)
          Returns the cost (in dollars) of energy used in cooling, based on costs in the current Utility object and the current type of heat, given the heating requirement, in kilowatt hours.
 double getCoolingTemp()
          Gets the current thermostat setting (in C) for cooling.
 Utility getCoolingUtil()
          Returns the current cooling Utility object.
 double getHeatingCOP()
          Returns the current Coefficient of Performance for heating.
 double getHeatingCost(double kwh)
          Returns the cost (in dollars) of energy used in heating, based on costs in the current Utility object and the current type of heat, given the heating requirement, in kilowatt hours.
 double getHeatingTemp()
          Gets the current thermostat setting (in C) for heating.
 Utility getHeatingUtil()
          Returns the current heating Utility object.
 void setCoolingCOP(double cop)
          Sets the current Coefficient of Performance for cooling.
 void setCoolingTemp(int tc)
          Sets the current thermostat for cooling.
 void setCoolingUtil(Utility util)
          Sets the current cooling Utility object.
 void setHeatingCOP(double cop)
          Sets the current Coefficient of Performance for Heating.
 void setHeatingTemp(int th)
          Sets the current thermostat for heating.
 void setHeatingUtil(Utility util)
          Sets the current heating Utility object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

hvac

public hvac(double hcop,
            double ccop,
            double th,
            double tc,
            Utility heating_util,
            Utility cooling_util)

Creates an instance of the hvac class, given

Method Detail

getHeatingCOP

public double getHeatingCOP()
Returns the current Coefficient of Performance for heating.

setHeatingCOP

public void setHeatingCOP(double cop)
Sets the current Coefficient of Performance for Heating.

getCoolingCOP

public double getCoolingCOP()
Returns the current Coefficient of Performance for cooling.

setCoolingCOP

public void setCoolingCOP(double cop)
Sets the current Coefficient of Performance for cooling.

getHeatingTemp

public double getHeatingTemp()
Gets the current thermostat setting (in C) for heating.

setHeatingTemp

public void setHeatingTemp(int th)
Sets the current thermostat for heating. Classes that use the hvac class should consult this setting when calculating hvac energy requirements.

getCoolingTemp

public double getCoolingTemp()
Gets the current thermostat setting (in C) for cooling.

setCoolingTemp

public void setCoolingTemp(int tc)
Sets the current thermostat for cooling. Classes that use the hvac class should consult this setting when calculating cooling energy requirements.

getHeatingUtil

public Utility getHeatingUtil()
Returns the current heating Utility object.

getCoolingUtil

public Utility getCoolingUtil()
Returns the current cooling Utility object.

setHeatingUtil

public void setHeatingUtil(Utility util)
Sets the current heating Utility object.

setCoolingUtil

public void setCoolingUtil(Utility util)
Sets the current cooling Utility object.

getHeatingCost

public double getHeatingCost(double kwh)
Returns the cost (in dollars) of energy used in heating, based on costs in the current Utility object and the current type of heat, given the heating requirement, in kilowatt hours.

getCoolingCost

public double getCoolingCost(double kwh)
Returns the cost (in dollars) of energy used in cooling, based on costs in the current Utility object and the current type of heat, given the heating requirement, in kilowatt hours.