public class Query extends Message implements ScopeableMessage
AX25Message.Precedence| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
queryType
Query type (text between question marks '?' in the message).
|
comment, extensions, msgType, S_PERMANENT, S_PERMANENT_UC, symbolCode, symTableId, USASCIIax25Frame, invalid, ISO_8859_1, originatingCallsign, PERMANENT, rcptTime, thirdParty, timestamp, UTC, UTF8| Constructor and Description |
|---|
Query(byte[] body,
int offset,
java.lang.String tp,
long rcvTimestamp)
Constructor for Query message when decoding a binary AX.25 frame.
|
Query(java.lang.String queryType)
Constructor for locally-originated (outbound) general Query message.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBody(boolean countTransmission,
byte protocolId,
AX25Frame frame)
Get an instance of this message, suitable for transmitting.
|
Scope |
getScope()
Get the transmission scope for this message (so the digipeat path can be derived).
|
boolean |
isEnabled()
Test if message should still be transmitted.
|
java.lang.String |
paramString()
Descriptive text about this message, to be included in the toString() method's response.
|
bodyEquals, compareTo, decodeDatestamp, decodeHurricaneParams, decodeTimestamp, decodeWeatherParams, decodeWeatherParams, dup, encodeTimestamp, extractComment, extractComment, extractSymbol, formatBody, getComment, getExtension, getExtensionString, getMsgType, getReadOnlyExtensionMap, getSymbolCode, getSymTableId, hasWeather, inferSymbol, isSymbolInferred, looksLikeLongFormatLatitude, setComment, setSymbolCode, setSymTableId, storeExtension, toStringequals, 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, splitclone, finalize, getClass, notify, notifyAll, wait, wait, waitduppublic final java.lang.String queryType
public Query(byte[] body,
int offset,
java.lang.String tp,
long rcvTimestamp)
body - byte array of frame bodyoffset - int array index offset for start of message (non-zero for encapsulated messages)tp - third-party relay String for encapsulated messages, or null for no third-party wrapperrcvTimestamp - Unix time when message was actually received by YAACpublic Query(java.lang.String queryType)
queryType - String of general query to makepublic java.lang.String paramString()
paramString in class MessageMessage.toString()public byte[] getBody(boolean countTransmission,
byte protocolId,
AX25Frame frame)
getBody in interface SendableMessagecountTransmission - ignored, because queries are always the sameprotocolId - AX.25 protocol to format message inframe - AX25Frame into which the message will be placed, so any alternate AX25Message can be linked to itAX25Frame.parsedAX25Msgpublic boolean isEnabled()
isEnabled in interface SendableMessagepublic Scope getScope()
getScope in interface ScopeableMessage