wonderly.jeaprs.aprs.packet
Class APRSQuery

java.lang.Object
  |
  +--wonderly.jeaprs.aprs.packet.APRSData
        |
        +--wonderly.jeaprs.aprs.packet.APRSQuery
All Implemented Interfaces:
APRSEventDataProcessor, java.io.Serializable

public class APRSQuery
extends APRSData

Version:
1.0
Author:
Gregg Wonderly - The information contained in this document is Copyright 2001-2003, Gregg Wonderly, all rights reserved.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class wonderly.jeaprs.aprs.packet.APRSData
altIcons, data, hasOverlaya, hasOverlayn, icon, overlay, packetType
 
Constructor Summary
APRSQuery(wonderly.jeaprs.ByteString data)
           
 
Method Summary
 byte[] formatReportData()
          This method must be implemented by the various packet types to construct the APRS packet data that follows the PATH in a UI frame.
 wonderly.jeaprs.ByteString getQueriedStation()
          Gets the station that the query is to.
 wonderly.jeaprs.ByteString getQuery()
          Gets the name of the query requested
 wonderly.jeaprs.ByteString getResultStation()
          Returns the station that the query is to be sent to.
 void processData(wonderly.jeaprs.aprs.packet.APRSPacket pkt, wonderly.jeaprs.aprs.packet.APRSEventListener obj)
          This method needs to be called for any APRS packet that could produce multiple APRS data objects.
 java.lang.String toString()
           
 
Methods inherited from class wonderly.jeaprs.aprs.packet.APRSData
addOtherAPRSData, ambiguousDistance, calcIconFrom, fixedToString, formatTime, getGridInfo, getIcon, getLatHundredthsSecondsToString, getLatHundrethsSecondsParts, getLatSecondsToString, getLonHundredthsSecondsToString, getLonHundrethsSecondsParts, getLonSecondsToString, getOtherAPRSData, getOverlayIndex, getPrintable, isAltIcon, isGridOnly, isNum, isOverlayAlpha, isOverlayNumeric, latHundredthsSecondsAsString, latLonParts, latSecondsAsString, log, lonHundredthsSecondsAsString, lonSecondsAsString, main, numToString, numToString, numToString, parseLat, parseLon, parseTime, sendPacket, toNum, zeroPad, zeroPad, zFill
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

APRSQuery

public APRSQuery(wonderly.jeaprs.ByteString data)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getQueriedStation

public wonderly.jeaprs.ByteString getQueriedStation()
Gets the station that the query is to. If this is not your query, i.e. APRS.getMyCall().equals(getQueriedStation()) == false then don't answer the query unless getQueriedStation() returns null, which indicates that the query is to all stations.


getQuery

public wonderly.jeaprs.ByteString getQuery()
Gets the name of the query requested


getResultStation

public wonderly.jeaprs.ByteString getResultStation()
Returns the station that the query is to be sent to. If this returns null, then this is a general query that should be sent back to the sending station. Use the APRSPacket.getFrom() method to get this call.


formatReportData

public byte[] formatReportData()
Description copied from class: APRSData
This method must be implemented by the various packet types to construct the APRS packet data that follows the PATH in a UI frame. Thus, if a status packet was to be sent out, this method should return something such as ">My status".getBytes().

Specified by:
formatReportData in class APRSData

processData

public void processData(wonderly.jeaprs.aprs.packet.APRSPacket pkt,
                        wonderly.jeaprs.aprs.packet.APRSEventListener obj)
Description copied from class: APRSData
This method needs to be called for any APRS packet that could produce multiple APRS data objects.

Specified by:
processData in interface APRSEventDataProcessor
Overrides:
processData in class APRSData
See Also:
APRSPosition.processData(APRSPacket,APRSEventListener)