Class WeatherReportLineProc

java.lang.Object
  |
  +--org.nukesoft.bot2.lineproc.GenericLineProc
        |
        +--WeatherReportLineProc
All Implemented Interfaces:
LineProc

public class WeatherReportLineProc
extends GenericLineProc

This class is demonstration of the various things that LineProcs are capeable of. This LineProc accepts a zip code and returns a weather report. The report is based off of the XML web service provided by http://www.innergears.com.

 This web services accepts one parameters:
 1) A string containing the Zip Code to find the weather for.
 
 This web service returns an array of strings, containing the following elements:
 [0] = State Code, such as "FL".
 [1] = City Name, such as "Melbourne".
 [2] = Latitude of this post office.
 [3] = Longitude of this post office.
 [4] = The ICAO Code of the nearest weather reporting station, such as "KLMB".
 [5] = The distance in miles from the post office to the weather reporting station, such as "12.56".
 [6] = The direction to the weather reporting station, such as "NE".
 [7] = The name of the weather reporting station, such as "Melbourne, Melbourne International Airport".
 [8] = The state code in which the weather reporting station is located, such as "FL".
 [9] = The country in which the weather reporting station is located, such as "United States".
 [10] = The latitude of the weather reporting station.
 [11] = The longitude of the weather reporting station.
 [12] = The report title, such as "Melbourne, Melbourne International Airport, FL, United States".
 [13] = The time of the last report, such as "Oct 13, 2002 - 02:53 PM EDT".
 [14] = The wind direction and speed, such as "from the E (090 degrees) at 12 MPH (10 KT)".
 [15] = The visibility, such as "10 mile(s)".
 [16] = The sky condition, such as "partly cloudy".
 [17] = The Temperature, such as "84.9 F (29.4 C)".
 [18] = The Dew Point, such as "73.0 F (22.8 C)".
 [19] = The humidity, such as "67%".
 [20] = The air pressure, such as "30.03 in. Hg (1016 hPa)".
 [21] = The entire METAR line received from NOAA, such as "KMLB 131853Z AUTO 09010KT 10SM VCTS SCT020 29/23 A3003 RMK AO2 LTG DSNT S-NW TSB16E36B41 SLP167 T02940228".
 

Author:
Ryan Michela

Field Summary
 
Fields inherited from class org.nukesoft.bot2.lineproc.GenericLineProc
context, myCommLibBindID, remoteScreenName
 
Constructor Summary
WeatherReportLineProc()
           
 
Method Summary
 void handleIM(IM message)
          Handles an incomming IM.
 
Methods inherited from class org.nukesoft.bot2.lineproc.GenericLineProc
bindContext, delay, handleWarn, init, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeatherReportLineProc

public WeatherReportLineProc()
Method Detail

handleIM

public void handleIM(IM message)
Handles an incomming IM.

Specified by:
handleIM in interface LineProc
Specified by:
handleIM in class GenericLineProc
See Also:
LineProc.handleIM(org.nukesoft.bot2.core.IM)