Download master thesis
Transcript
Appendix G F.1.5 EnergyYear.java file This file includes the following functions: l int ValidateYear(String d): checks if the format of the date is valid. l int YearExists(String y): when a new year is going to be inserted for a specific building then the function checks if the building has been evaluated before, for the same year. l String [] ReturnRR(int bid): returns the values for Rr parameter for heating and cooling for a specific building. l int ReturnYears(): checks if there are data for three or less than three years. This function is very important because it defines the method of classification that must be used. F.1.6 EnergyRating.java file This file includes the following functions: l int IsHeatDouble(): checks if the electrical, oil and gas bills for the heating period are in double format. If they are empty then they can be considered as zero. l int IsHeatEmpty(): checks if the fields of electricity, oil and gas for heating are empty. l int IsHeatConEmpty(): checks if the calculations of heating consumption have been realized. l void CalculateHeat(): calculates energy consumption for the heating period. l int IsCoolDouble(): checks if the bills for the cooling period are in double format. If they are empty then they are equal to zero. l int IsCoolEmpty(): checks if the fields of electricity, oil and gas for cooling are empty. l void CalculateCool(): calculates energy consumption for the cooling period. l int IsCoolConEmpty(): checks if the calculations of cooling consumption have been realized. l void LightingConsumptionPerMonth(String month, String consumption): 101