package eecs2030.test4;
import java.util.ArrayList;
import java.util.List;
/**
* A class that represents a weather forecast of exactly seven days. The first
* day of the forecast is the weather for today. The forecast and its collection
* of weather objects form a composition.
*
* @author EECS2030 Fall 2016-17
*
*/
public class WeeklyForecast extends Forecast {
/**
* The number of days in this forecast.
*/
public static final int DAYS = 7;
// ADD YOUR FIELDS HERE
/**
* Initializes this weekly weather forecast using the provided list of
* weather objects. The size of the list must be equal to
* WeeklyForecast.DAYS
otherwise an exception is thrown.
*
* @param weather
* the list of weather objects for this forecast
* @throws IllegalArgumentException
* if the size of the list is not equal to WeeklyForecast.DAYS
*/
public WeeklyForecast(List weather) {
}
/**
* Initializes this weekly weather forecast by copying another forecast.
*
* @param other
* the forecast to copy
*/
public WeeklyForecast(WeeklyForecast other) {
}
/**
* Returns a deep copy of the list of weather objects for this forecast.
*
* @return a deep copy of the list of weather objects for this forecast
*/
public List getWeather() {
}
/**
* Get the predicted weather for n
days from today.
*
* @param n
* the number of days from today
* @return the predicted weather n days in the future
* @throws IllegalArgumentException
* if n is less than zero or greater than (WeeklyForecast.DAYS -
* 1)
*/
@Override
public Weather getWeather(int n) {
}
/**
* Returns a string representation of this weather forecast. The string
* starts with "Seven day weather forecast:\n" and is followed by the string
* returned by Forecast.toString
.
*
* @return a string representation of this weather forecast
*/
@Override
public String toString() {
}
}