com.sun.syndication.feed.module.yahooweather.types
Class Wind

java.lang.Object
  extended by com.sun.syndication.feed.module.yahooweather.types.Wind
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Wind
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Units for various aspects of the forecast. Attributes:

Note that the default RSS feed uses Fahrenheit degree units and English units for all other attributes (miles, pounds per square inch, miles per hour). If Celsius has been specified as the degree units for the feed (using the u request parameter), all the units are in metric format (Celsius, kilometers, millibars, kilometers per hour).

Version:
$Id: Wind.java,v 1.2 2008/01/22 14:50:05 kebernet Exp $
Author:
Robert "kebernet" Cooper
See Also:
Serialized Form

Constructor Summary
Wind()
          Simple Constructor
Wind(int chill, int direction, int speed)
          Constructs a new Wind object
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 int getChill()
          Wind chill adjusted temperature.
 int getDirection()
          Direction of wind in degrees
 int getSpeed()
          Speed of wind
 int hashCode()
           
 void setChill(int chill)
          Wind chill adjusted temperature.
 void setDirection(int direction)
          Direction of wind in degrees
 void setSpeed(int speed)
          Speed of wind
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Wind

public Wind()
Simple Constructor


Wind

public Wind(int chill,
            int direction,
            int speed)
Constructs a new Wind object

Parameters:
chill - wind chill adjusted temperature
direction - direction of wind in degrees
speed - speed of wind
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getChill

public int getChill()
Wind chill adjusted temperature.

Returns:
int temperature value
See Also:
Units

setChill

public void setChill(int chill)
Wind chill adjusted temperature.

Parameters:
chill - int temperature value
See Also:
Units

getDirection

public int getDirection()
Direction of wind in degrees

Returns:
int direction of wind.

setDirection

public void setDirection(int direction)
Direction of wind in degrees

Parameters:
direction - int direction of wind.

getSpeed

public int getSpeed()
Speed of wind

Returns:
int speed of wind
See Also:
Units

setSpeed

public void setSpeed(int speed)
Speed of wind

Parameters:
speed - int speed of wind
See Also:
Units

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object


Copyright © 2006-2009. All Rights Reserved.