org.discotools.io.aprs
Class AprsReport

java.lang.Object
  extended by org.discotools.io.AbstractPacket
      extended by org.discotools.io.aprs.AprsPacket
          extended by org.discotools.io.aprs.AprsReport
All Implemented Interfaces:
org.discotools.io.Packet
Direct Known Subclasses:
AprsPosition, AprsStatus

public class AprsReport
extends AprsPacket

APRS Report class

Author:
kengu

Field Summary
protected  String dstCall
          Destination call sign
protected  AprsExtension extension
          AprsExtension instance
protected  boolean isThirdParty
          Third-party header flag
protected  boolean isTimeEstimate
          Time stamp estimate flag (assign from station or parser)
protected  boolean isTNC2
          TNC_2 header format flag
protected  String path
          The path of nodes which this report has visited
protected  String srcCall
          Source call sign.
protected  char symbolCode
          The APRS symbol code (symbol table lookup)
protected  char symbolOverlay
          The APRS symbol overlay
protected  int symbolTable
          The APRS symbol table identifier
 
Fields inherited from class org.discotools.io.aprs.AprsPacket
comment
 
Fields inherited from class org.discotools.io.AbstractPacket
crc32, crc32Time, error, isDuplicate, isUnknown, isValid, payload, time, type, UNKNOWN
 
Constructor Summary
AprsReport(AprsReport report, String payload)
           
AprsReport(AprsReportType type, AprsReport report)
           
AprsReport(AprsReportType type, String payload)
           
AprsReport(String payload)
           
 
Method Summary
protected static String concat(String s1, String s2)
           
protected static boolean empty(String value)
           
protected  long getCRS32Age()
           
 String getDstCall()
           
 String getDstSSID()
           
 AprsExtension getExtension()
           
 String getPath()
           
 String getSrcCall()
           
 String getSrcSSID()
           
 AprsSymbol getSymbol()
           
 char getSymbolCode()
           
 char getSymbolOverlay()
           
 int getSymbolTable()
           
 AprsReportType getType()
           
 boolean isComplete()
           
 boolean isExtension(AprsExtensionType type)
           
 boolean isThirdParty()
           
 boolean isTimeEstimate()
           
 boolean isTNC2()
           
protected  long setCRS32()
           
protected  void setDstCall(String dstCall)
           
protected  void setDuplicate(boolean isDuplicate)
           
protected  void setEstimate(boolean isEstimate)
           
protected  void setExtension(AprsExtension extension)
           
protected  void setHeaderType(boolean isTNC2, boolean isThirdParty)
           
protected  void setPath(String path)
           
protected  void setSrcCall(String srcCall)
           
protected  void setSymbol(int table, char code, char overlay)
           
protected  void setTime(long milliseconds)
           
protected  void setTime(Long milliseconds, boolean isEstimate)
           
 String toString()
           
 
Methods inherited from class org.discotools.io.aprs.AprsPacket
getComment, setComment, setValid, setValid
 
Methods inherited from class org.discotools.io.AbstractPacket
getBytes, getCRS32, getError, getPayload, getTime, isDuplicate, isType, isUnknown, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

srcCall

protected String srcCall
Source call sign.


dstCall

protected String dstCall
Destination call sign


path

protected String path
The path of nodes which this report has visited


symbolTable

protected int symbolTable
The APRS symbol table identifier


symbolCode

protected char symbolCode
The APRS symbol code (symbol table lookup)


symbolOverlay

protected char symbolOverlay
The APRS symbol overlay


isTimeEstimate

protected boolean isTimeEstimate
Time stamp estimate flag (assign from station or parser)


isTNC2

protected boolean isTNC2
TNC_2 header format flag


isThirdParty

protected boolean isThirdParty
Third-party header flag


extension

protected AprsExtension extension
AprsExtension instance

Constructor Detail

AprsReport

public AprsReport(String payload)

AprsReport

public AprsReport(AprsReportType type,
                  String payload)

AprsReport

public AprsReport(AprsReport report,
                  String payload)

AprsReport

public AprsReport(AprsReportType type,
                  AprsReport report)
Method Detail

getType

public AprsReportType getType()
Specified by:
getType in interface org.discotools.io.Packet
Overrides:
getType in class org.discotools.io.AbstractPacket

getSrcCall

public String getSrcCall()

getSrcSSID

public String getSrcSSID()

getDstCall

public String getDstCall()

getDstSSID

public String getDstSSID()

getPath

public String getPath()

getSymbolTable

public int getSymbolTable()

getSymbolCode

public char getSymbolCode()

getSymbolOverlay

public char getSymbolOverlay()

getSymbol

public AprsSymbol getSymbol()

isTimeEstimate

public boolean isTimeEstimate()

isTNC2

public boolean isTNC2()

isThirdParty

public boolean isThirdParty()

getExtension

public AprsExtension getExtension()

isExtension

public boolean isExtension(AprsExtensionType type)

toString

public String toString()
Overrides:
toString in class AprsPacket

isComplete

public boolean isComplete()
Specified by:
isComplete in interface org.discotools.io.Packet
Overrides:
isComplete in class AprsPacket

setTime

protected void setTime(Long milliseconds,
                       boolean isEstimate)

setSrcCall

protected void setSrcCall(String srcCall)

setDstCall

protected void setDstCall(String dstCall)

setPath

protected void setPath(String path)

setHeaderType

protected void setHeaderType(boolean isTNC2,
                             boolean isThirdParty)

setSymbol

protected void setSymbol(int table,
                         char code,
                         char overlay)

setEstimate

protected void setEstimate(boolean isEstimate)

setExtension

protected void setExtension(AprsExtension extension)

empty

protected static boolean empty(String value)

concat

protected static String concat(String s1,
                               String s2)

setTime

protected void setTime(long milliseconds)
Overrides:
setTime in class org.discotools.io.AbstractPacket

setDuplicate

protected void setDuplicate(boolean isDuplicate)
Overrides:
setDuplicate in class org.discotools.io.AbstractPacket

setCRS32

protected long setCRS32()
Overrides:
setCRS32 in class org.discotools.io.AbstractPacket

getCRS32Age

protected long getCRS32Age()
Overrides:
getCRS32Age in class org.discotools.io.AbstractPacket


Copyright © 2012-2013 DISCO Foundation. All Rights Reserved.