/** * * @author CS2334. Modified by: ????? *

* Date: 2015-09-10
* Project 1 *

* This class represents a summary of one day's data from a single Mesonet station. * */ public class DailyData { /** Year in which the data were sampled */ private int year; /** Month in which the data were sampled */ private int month; /** The day on which the data were sampled (1=January, 2=February, etc */ private int day; /** The identifier for the station. */ private String stationID; /** Maximum temperature observed during the day. */ private Observation temperatureMax; /** Minimum temperature observed during the day. */ private Observation temperatureMin; /** Average temperature over the entire day. */ private Observation temperatureAverage; /** Rainfall observed during the day (inches) */ private Observation rainFall; /** * DailyData constructor * * @param year Year of the sample * @param month Month of the sample * @param day Day of the sample * @param stationID Station identifier * @param temperatureMax Maximum temperature * @param temperatureMin Minimum temperature * @param temperatureAverage Average temperature * @param rainFall Amount of rain (in inches) */ public DailyData(int year, int month, int day, String stationID, Observation temperatureMax, Observation temperatureMin, Observation temperatureAverage, Observation rainFall) { // TODO: complete implementation } // TODO: implement getters /** * Describe the data for the day * * @return String describing the day */ public String toString(){ return "Day: " + temperatureMax + "\t" + temperatureMin + "\t" + temperatureAverage + "\t" + rainFall; } }