net.spy.info
Class FlightTracker

java.lang.Object
  extended bynet.spy.SpyObject
      extended bynet.spy.info.Info
          extended bynet.spy.info.FlightTracker

public class FlightTracker
extends Info

Get FlightTracker info.


Field Summary
 
Fields inherited from class net.spy.info.Info
arg, error, hinfo, info
 
Constructor Summary
FlightTracker()
          Get an uninitialized FlightTracker object.
FlightTracker(String arg)
          Get a FlightTracker object.
FlightTracker(String airline, String flightnum)
          Get a FlightTracker object.
 
Method Summary
protected  void getInfo()
          getInfo gets the data to be parsed.
static void main(String[] args)
           
protected  void parseInfo()
          parseInfo parses the data into the hinfo Hashtable object.
 void setArg(String arg)
          Set the object arguments.
 String toString()
          Get a string representation of the info object.
 
Methods inherited from class net.spy.info.Info
deEntity, get, get, goodInfo, toXML
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlightTracker

public FlightTracker(String airline,
                     String flightnum)
Get a FlightTracker object.

Parameters:
airline - the 3-letter airline abreviation
flightnum - the flight number on that airline

FlightTracker

public FlightTracker(String arg)
Get a FlightTracker object.

Parameters:
arg - airline and flight number with a colon separating them. i.e. DFW:3832

FlightTracker

public FlightTracker()
Get an uninitialized FlightTracker object.

Method Detail

setArg

public void setArg(String arg)
Set the object arguments.

Overrides:
setArg in class Info
Parameters:
arg - airline and flight number with a colon separating them. i.e. DFW:3832

toString

public String toString()
Description copied from class: Info
Get a string representation of the info object.

Overrides:
toString in class Info

parseInfo

protected void parseInfo()
                  throws Exception
Description copied from class: Info
parseInfo parses the data into the hinfo Hashtable object. It will be called when needed.

Specified by:
parseInfo in class Info
Throws:
Exception

getInfo

protected void getInfo()
                throws Exception
Description copied from class: Info
getInfo gets the data to be parsed.

Specified by:
getInfo in class Info
Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception