wonderly.jeaprs.aprs.packet
Class APRSStatus

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

public class APRSStatus
extends APRSMessage

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
APRSStatus(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.
 int getHeading()
           
 wonderly.jeaprs.ByteString getMaidenhead()
           
 wonderly.jeaprs.ByteString getMessage()
           
 int getPower()
           
 wonderly.jeaprs.ByteString getStatus()
           
 long getTime()
          Spec says must be zulu time, Some reports are structured as
 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.APRSMessage
getAck, getPrintable, getTo, isAck, isBulletin, setAck, setMessage, setMessage, setTo
 
Methods inherited from class wonderly.jeaprs.aprs.packet.APRSData
addOtherAPRSData, ambiguousDistance, calcIconFrom, fixedToString, formatTime, getGridInfo, getIcon, getLatHundredthsSecondsToString, getLatHundrethsSecondsParts, getLatSecondsToString, getLonHundredthsSecondsToString, getLonHundrethsSecondsParts, getLonSecondsToString, getOtherAPRSData, getOverlayIndex, 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

APRSStatus

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

getTime

public long getTime()
Spec says must be zulu time, Some reports are structured as
>092310 My Status is...
Others look like
>092310zMy Status is...
If the space is there instead of the 'z', the time conversion will be to local time...sigh.. so much for specs...

Returns:
time of status report.

getPower

public int getPower()

getHeading

public int getHeading()

getStatus

public wonderly.jeaprs.ByteString getStatus()

getMaidenhead

public wonderly.jeaprs.ByteString getMaidenhead()

toString

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

getMessage

public wonderly.jeaprs.ByteString getMessage()
Overrides:
getMessage in class APRSMessage

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().

Overrides:
formatReportData in class APRSMessage

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 APRSMessage
See Also:
APRSPosition.processData(APRSPacket,APRSEventListener)