org.discotools.io.aprs
Class AprsPosition

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

public class AprsPosition
extends AprsReport


Field Summary
protected  Double altitude
          Altitude (meter)
protected  boolean isMICe
          Flag indicating that the position was parsed from an MIC-e format
protected  boolean isNMEA
          Flag indicating that the position was parsed from an NMEA format
protected  boolean isPointEstimate
          Point estimate flag (assign from station or vicinity plot)
protected  int msgCode
          MIC-e message code.
protected  com.vividsolutions.jts.geom.Point point
          Point instance
 
Fields inherited from class org.discotools.io.aprs.AprsReport
dstCall, extension, isThirdParty, isTimeEstimate, isTNC2, path, srcCall, symbolCode, symbolOverlay, symbolTable
 
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
protected AprsPosition(AprsReport report)
           
protected AprsPosition(AprsReportType type, AprsReport report)
           
protected AprsPosition(AprsReportType type, String payload)
           
protected AprsPosition(String payload)
           
 
Method Summary
 Double getAltitude()
          Get altitude (in feet)
 String getMsg()
           
 com.vividsolutions.jts.geom.Point getPoint()
           
 boolean isComplete()
           
 boolean isMICe()
           
 boolean isNMEA()
           
 boolean isPointEstimate()
           
protected  void setAltitude(Double altitude)
           
protected  void setMICe(boolean isMICe)
           
protected  void setMsgCode(int msgCode)
           
protected  void setNMEA(boolean isNMEA)
           
protected  void setPoint(double lon, double lat)
           
protected  void setPoint(double lon, double lat, double alt)
           
protected  void setPoint(com.vividsolutions.jts.geom.Point position, boolean isEstimate)
           
 String toString()
           
 
Methods inherited from class org.discotools.io.aprs.AprsReport
concat, empty, getCRS32Age, getDstCall, getDstSSID, getExtension, getPath, getSrcCall, getSrcSSID, getSymbol, getSymbolCode, getSymbolOverlay, getSymbolTable, getType, isExtension, isThirdParty, isTimeEstimate, isTNC2, setCRS32, setDstCall, setDuplicate, setEstimate, setExtension, setHeaderType, setPath, setSrcCall, setSymbol, setTime, setTime
 
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

point

protected com.vividsolutions.jts.geom.Point point
Point instance


isPointEstimate

protected boolean isPointEstimate
Point estimate flag (assign from station or vicinity plot)


altitude

protected Double altitude
Altitude (meter)


isMICe

protected boolean isMICe
Flag indicating that the position was parsed from an MIC-e format


isNMEA

protected boolean isNMEA
Flag indicating that the position was parsed from an NMEA format


msgCode

protected int msgCode
MIC-e message code. Default is an empty string.

Constructor Detail

AprsPosition

protected AprsPosition(String payload)

AprsPosition

protected AprsPosition(AprsReportType type,
                       String payload)

AprsPosition

protected AprsPosition(AprsReport report)

AprsPosition

protected AprsPosition(AprsReportType type,
                       AprsReport report)
Method Detail

isComplete

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

getPoint

public com.vividsolutions.jts.geom.Point getPoint()

isPointEstimate

public boolean isPointEstimate()

getAltitude

public Double getAltitude()
Get altitude (in feet)


isNMEA

public boolean isNMEA()

isMICe

public boolean isMICe()

getMsg

public String getMsg()

toString

public String toString()
Overrides:
toString in class AprsReport

setPoint

protected void setPoint(com.vividsolutions.jts.geom.Point position,
                        boolean isEstimate)

setPoint

protected void setPoint(double lon,
                        double lat)

setPoint

protected void setPoint(double lon,
                        double lat,
                        double alt)

setAltitude

protected void setAltitude(Double altitude)

setNMEA

protected void setNMEA(boolean isNMEA)

setMICe

protected void setMICe(boolean isMICe)

setMsgCode

protected void setMsgCode(int msgCode)


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