com.github.fedy2.weather.data
Class Forecast

java.lang.Object
  extended by com.github.fedy2.weather.data.Forecast

public class Forecast
extends Object

The weather forecast for a specific day.

Author:
"Federico De Faveri defaveri@gmail.com"

Constructor Summary
Forecast()
           
Forecast(WeekDay day, Date date, int low, int high, String text, int code)
           
 
Method Summary
 int getCode()
          Returns the condition code for this forecast.
 Date getDate()
          Returns the date to which this forecast applies.
 WeekDay getDay()
          Returns the day of the week to which this forecast applies.
 int getHigh()
          Returns the forecasted high temperature for this day, in the units specified by the unit field in the Channel class.
 int getLow()
          Returns the forecasted low temperature for this day, in the units specified by the unit field in the Channel class.
 String getText()
          Returns a textual description of conditions, for example, "Partly Cloudy"
 String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Forecast

public Forecast()

Forecast

public Forecast(WeekDay day,
                Date date,
                int low,
                int high,
                String text,
                int code)
Parameters:
day -
date -
low -
high -
text -
code -
Method Detail

getDay

public WeekDay getDay()
Returns the day of the week to which this forecast applies.

Returns:
the day

getDate

public Date getDate()
Returns the date to which this forecast applies.

Returns:
the date

getLow

public int getLow()
Returns the forecasted low temperature for this day, in the units specified by the unit field in the Channel class.

Returns:
the low

getHigh

public int getHigh()
Returns the forecasted high temperature for this day, in the units specified by the unit field in the Channel class.

Returns:
the high

getText

public String getText()
Returns a textual description of conditions, for example, "Partly Cloudy"

Returns:
the text

getCode

public int getCode()
Returns the condition code for this forecast. The code are listed here: http://developer.yahoo.com/weather/#codes

Returns:
the code

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2013. All rights reserved.