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).
|
double |
rangeDistance
Radius of range limit in statute miles.
|
double |
rangeLatitude
Latitude in fractional degrees North of center of query range limit.
|
double |
rangeLongitude
Longitude in fractional degrees East of center of query range limit.
|
appendCR, APRS_AND_OPENTRAC_AND_RAW, APRS_AND_RAW, comment, msgType, S_PERMANENT, S_PERMANENT_UC, symbolCode, symTableIdAPRS_AND_OPENTRAC, ax25Frame, extensions, invalid, originatingCallsign, originatingDest, PERMANENT, rcptTime, thirdParty, timestamp, UTC| 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 |
|---|---|
void |
disableForTransmit()
Specify that message should no longer be transmitted.
|
byte[] |
getBody(boolean countTransmission,
ProtocolFamily 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, getExtensionString, getMsgType, getPrecedence, getProtocols, getSymbolCode, getSymTableId, hasWeather, inferSymbol, isAppendCR, isSymbolInferred, looksLikeLongFormatLatitude, setAppendCR, setComment, setSymbolCode, setSymTableId, toStringequals, extractSource, getAx25Frame, getExtension, getFirstDigipeat, getLastDigipeat, getNthDigipeat, getOriginalDestination, getOriginalSource, getOriginatingCallsign, getOriginatingDest, getRcptTime, getReadOnlyExtensionMap, getTimestamp, hashCode, hasPosition, hasThisFirstDigi, indexOf, indexOf, isDirect, isInvalid, isRf, onlyDigits, onlyDigits, onlyDigitsOrMinus, onlyDigitsOrPeriod, onlyDigitsOrSpace, onlyDigitsPlus, onlyPeriods, setAx25Frame, setInvalid, setOriginatingCallsign, setRcptTime, setTimestamp, split, storeExtensionclone, finalize, getClass, notify, notifyAll, wait, wait, waitduppublic final java.lang.String queryType
public double rangeLatitude
public double rangeLongitude
public double rangeDistance
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,
ProtocolFamily 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 void disableForTransmit()
disableForTransmit in interface SendableMessagepublic Scope getScope()
getScope in interface ScopeableMessage