|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.metdata.WMOHeader
public class WMOHeader
This class enscapsulates an WMO "Abbreviated heading", the string used as an identifer on WMO format messages. Ref: _Manual on the Global Telecommunications System_, Volume 1, Global Aspects. WMO-No. 386, 1986 Paragraph 2.3.2 page A.II-3
| Constructor Summary | |
|---|---|
WMOHeader(ByteString.Concrete src,
ByteString.TrSubString TTAA,
byte ii,
ByteString.SubString CCCC,
Timestamp ts)
Create a new WMOHeader |
|
| Method Summary | |
|---|---|
int |
compareTo(Object oo)
Compare to another object |
int |
compareTo(WMOHeader hdr)
Imposes a "natural order" on WMOHeaders. |
ByteString |
getCallSign()
Returns the "international four letter location indicator of the station originating or compiling the bulletin" (CCCC). |
ByteString |
getText()
Get the header |
Timestamp |
getTimestamp()
Get the timestamp |
String |
toString()
Return a String representation of this WMOHeader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WMOHeader(ByteString.Concrete src,
ByteString.TrSubString TTAA,
byte ii,
ByteString.SubString CCCC,
Timestamp ts)
src - source of the HeaderTTAA - TTAA portionii - II portionCCCC - CCCC portionts - timestamp| Method Detail |
|---|
public Timestamp getTimestamp()
public ByteString getText()
public ByteString getCallSign()
public int compareTo(WMOHeader hdr)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
hdr - the Object to be compared.
ClassCastException - if the specified object's type prevents it
from being compared to this Object.Comparablepublic int compareTo(Object oo)
compareTo in interface Comparableoo - Object to compare
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||