|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ka2ddo.ax25.AX25Message
org.ka2ddo.aprs.Message
org.ka2ddo.aprs.PositionlessWeatherReport
public class PositionlessWeatherReport
This class decodes a Positionless Weather APRS message (APRS protocol specification chapter 12).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.ka2ddo.ax25.AX25Message |
|---|
AX25Message.Precedence |
| Field Summary | |
|---|---|
protected static java.lang.String |
MDHM
|
char |
softwareType
Code for type of software the sending weather station is using. |
java.lang.String |
wsType
Weather station hardware type. |
| Fields inherited from class org.ka2ddo.aprs.Message |
|---|
comment, extensions, msgType, S_PERMANENT, S_PERMANENT_UC, symbolCode, symTableId, USASCII |
| Fields inherited from class org.ka2ddo.ax25.AX25Message |
|---|
ax25Frame, invalid, ISO_8859_1, originatingCallsign, PERMANENT, rcptTime, thirdParty, timestamp, UTC, UTF8 |
| Constructor Summary | |
|---|---|
PositionlessWeatherReport(byte[] body,
int offset,
java.lang.String tp,
AX25Callsign dst,
long rcvTimestamp)
Standard constructor for PositionlessWeatherReport, for decoding from an AX.25 frame (or equivalent). |
|
PositionlessWeatherReport(long now)
Alternate constructor, used to create an empty message for population by local weather data. |
|
PositionlessWeatherReport(java.lang.String body,
int offset)
Alternate constructor, used only to decode $PKWDWXI special message from Kenwood TH-D72 HT's built-in TNC when weather data is expected to be imported into the TNC from a local weather station. |
|
| Method Summary | |
|---|---|
byte[] |
getBody(boolean countTransmission,
byte protocolId,
AX25Frame frame)
Get an instance of this message, suitable for transmitting. |
boolean |
isEnabled()
Test if message should still be transmitted. |
boolean |
isSymbolInferred()
Report whether the non-null APRS symbol reported by this message is explicit or inferred from destination or source callsign. |
java.lang.String |
paramString()
Descriptive text about this message, to be included in the toString() method's response. |
| Methods inherited from class org.ka2ddo.aprs.Message |
|---|
bodyEquals, compareTo, decodeDatestamp, decodeHurricaneParams, decodeTimestamp, decodeWeatherParams, decodeWeatherParams, dup, encodeTimestamp, extractComment, extractComment, extractSymbol, formatBody, getComment, getExtension, getExtensionString, getMsgType, getReadOnlyExtensionMap, getSymbolCode, getSymTableId, hasWeather, inferSymbol, looksLikeLongFormatLatitude, setComment, setSymbolCode, setSymTableId, storeExtension, toString |
| Methods inherited from class org.ka2ddo.ax25.AX25Message |
|---|
equals, extractSource, getAx25Frame, getFirstDigipeat, getLastDigipeat, getOriginalDestination, getOriginalSource, getOriginatingCallsign, getPrecedence, getRcptTime, getTimestamp, hashCode, hasPosition, hasThisFirstDigi, indexOf, indexOf, isInvalid, onlyDigits, onlyDigits, onlyDigitsOrPeriod, onlyDigitsOrSpace, onlyDigitsPlus, onlyPeriods, setAx25Frame, setInvalid, setOriginatingCallsign, setRcptTime, setTimestamp, split |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ka2ddo.ax25.SendableMessage |
|---|
dup |
| Field Detail |
|---|
protected static final java.lang.String MDHM
public char softwareType
public java.lang.String wsType
| Constructor Detail |
|---|
public PositionlessWeatherReport(byte[] body,
int offset,
java.lang.String tp,
AX25Callsign dst,
long rcvTimestamp)
body - byte array of frame bodyoffset - starting point in the array (in case of third-party header)tp - extracted third-party header Stringdst - destination AX25Callsign from framercvTimestamp - timestamp at which message was received
public PositionlessWeatherReport(java.lang.String body,
int offset)
body - String containing the $PKWDWXI messageoffset - index of first byte after the message headerpublic PositionlessWeatherReport(long now)
now - time of weather data, in Java milliseconds since Jan 1, 1970 UTC| Method Detail |
|---|
public java.lang.String paramString()
paramString in class MessageMessage.toString()
public byte[] getBody(boolean countTransmission,
byte protocolId,
AX25Frame frame)
getBody in interface SendableMessagecountTransmission - number of times the message has been transmitted.protocolId - AX.25 protocol ID to generate the message in, or 0 for default protocol; currently,
only NOLVL3 (APRS) and OPENTRAC are supported.frame - AX25Frame into which the message will be placed; the decoded message (as opposed to the byte
array encoding) should be stored into the field frame.parsedAX25Msg
AX25Frame.parsedAX25Msgpublic boolean isEnabled()
isEnabled in interface SendableMessagepublic boolean isSymbolInferred()
isSymbolInferred in class Message
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||