edu.wisc.ssec.mcidas.adde
Class WxTextProduct

java.lang.Object
  extended by edu.wisc.ssec.mcidas.adde.WxTextProduct

public class WxTextProduct
extends Object

Class to hold a weather text product returned from an ADDE server


Constructor Summary
WxTextProduct(byte[] header)
          Create a new WxTextProduct from the header info.
 
Method Summary
 void addText(String newText)
          Adde text to the existing text
 String getApro()
          Get the AFOS product id
 String getAstn()
          Get the AFOS station
 Date getDate()
          Get the date of the product
 int getDay()
          Get the day of the product
 String getSource()
          Get the source of the product
 String getText()
          Get the product text
 int getTime()
          Get the time of the product
 String getWmo()
          Get the wmo id of the product
 String getWstn()
          Get the wmo station
 void setText(String newText)
          Set the text of the bulleting
 String toString()
          Get the string representation of this product
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WxTextProduct

public WxTextProduct(byte[] header)
Create a new WxTextProduct from the header info.

Parameters:
header - the ADDE header
Method Detail

addText

public void addText(String newText)
Adde text to the existing text

Parameters:
newText -

setText

public void setText(String newText)
Set the text of the bulleting

Parameters:
newText - the text

getText

public String getText()
Get the product text

Returns:
the product text

getSource

public String getSource()
Get the source of the product

Returns:
the source of the product

getDay

public int getDay()
Get the day of the product

Returns:
the day of the product

getTime

public int getTime()
Get the time of the product

Returns:
the time of the product

getWmo

public String getWmo()
Get the wmo id of the product

Returns:
the wmo id of the product

getWstn

public String getWstn()
Get the wmo station

Returns:
the wmo station

getApro

public String getApro()
Get the AFOS product id

Returns:
the AFOS product id

getAstn

public String getAstn()
Get the AFOS station

Returns:
the AFOS station

getDate

public Date getDate()
Get the date of the product

Returns:
the date of the product

toString

public String toString()
Get the string representation of this product

Overrides:
toString in class Object