edu.wisc.ssec.mcidas.adde
Class WxTextProduct
- java.lang.Object
-
- edu.wisc.ssec.mcidas.adde.WxTextProduct
-
public class WxTextProduct extends java.lang.ObjectClass to hold a weather text product returned from an ADDE server
-
-
Constructor Summary
Constructors Constructor and Description WxTextProduct(byte[] header)Create a new WxTextProduct from the header info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddText(java.lang.String newText)Adde text to the existing textjava.lang.StringgetApro()Get the AFOS product idjava.lang.StringgetAstn()Get the AFOS stationjava.util.DategetDate()Get the date of the productintgetDay()Get the day of the productjava.lang.StringgetSource()Get the source of the productjava.lang.StringgetText()Get the product textintgetTime()Get the time of the productjava.lang.StringgetWmo()Get the wmo id of the productjava.lang.StringgetWstn()Get the wmo stationvoidsetText(java.lang.String newText)Set the text of the bulletingjava.lang.StringtoString()Get the string representation of this product
-
-
-
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(java.lang.String newText)
Adde text to the existing text- Parameters:
newText-
-
setText
public void setText(java.lang.String newText)
Set the text of the bulleting- Parameters:
newText- the text
-
getText
public java.lang.String getText()
Get the product text- Returns:
- the product text
-
getSource
public java.lang.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 java.lang.String getWmo()
Get the wmo id of the product- Returns:
- the wmo id of the product
-
getWstn
public java.lang.String getWstn()
Get the wmo station- Returns:
- the wmo station
-
getApro
public java.lang.String getApro()
Get the AFOS product id- Returns:
- the AFOS product id
-
getAstn
public java.lang.String getAstn()
Get the AFOS station- Returns:
- the AFOS station
-
getDate
public java.util.Date getDate()
Get the date of the product- Returns:
- the date of the product
-
toString
public java.lang.String toString()
Get the string representation of this product- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG