wonderly.jeaprs.aprs.packet
Class APRSMessage

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

public class APRSMessage
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
protected APRSMessage()
           
  APRSMessage(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 getAck()
           
 wonderly.jeaprs.ByteString getMessage()
           
 java.lang.String getPrintable()
          Returns a printable/readable version of the packet.
 wonderly.jeaprs.ByteString getTo()
           
 boolean isAck()
           
 boolean isBulletin()
           
 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.
 void setAck(wonderly.jeaprs.ByteString ackCode)
           
 void setMessage(wonderly.jeaprs.ByteString txt)
           
 void setMessage(java.lang.String msg)
           
 void setTo(wonderly.jeaprs.ByteString recepient)
           
 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, 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

APRSMessage

protected APRSMessage()

APRSMessage

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

getPrintable

public java.lang.String getPrintable()
Description copied from class: APRSData
Returns a printable/readable version of the packet. This default implementation uses the Object.toString() methods return value.

Overrides:
getPrintable in class APRSData

isAck

public boolean isAck()

toString

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

setTo

public void setTo(wonderly.jeaprs.ByteString recepient)

setMessage

public void setMessage(java.lang.String msg)

setMessage

public void setMessage(wonderly.jeaprs.ByteString txt)

getMessage

public wonderly.jeaprs.ByteString getMessage()

isBulletin

public boolean isBulletin()

setAck

public void setAck(wonderly.jeaprs.ByteString ackCode)

getAck

public wonderly.jeaprs.ByteString getAck()

getTo

public wonderly.jeaprs.ByteString getTo()

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)

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