|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.discotools.io.AbstractParser<AprsReport>
org.discotools.io.aprs.AprsParser
public final class AprsParser
Default APRS Report parser.
This parser captures the following information about the sender
callsign
operation path
approximate location
packet
The parser algorithm implements the pseudo-code published by the father of APRS, Bob Bruninga (WB4APR).
The vicinity plot algorithm suggested by Bruninga, which calculate an
approximate location of stations with no prior location data registered,
is also supported. The vicinity plot algorithm utilize location
data of the first known digipeaters found on the
operation path
to calculate an approximate
location.
This parser uses the APRS Vicinity Plotting Algorithm to assign an location based on the location of the first known digipeater and igate that heard the station. see the APRS parser pseudo-code for more information on how to implement the algorithm.
Each station recognized by the parser is stored in an station cache supplied at construction. If no external cache is supplied an internal instance is used instead.
Constructor Summary | |
---|---|
AprsParser()
Default constructor. |
|
AprsParser(AprsCache cache)
External cache constructor. |
Method Summary | |
---|---|
void |
addListener(AprsCacheListener listener)
|
AprsCache |
getCache()
|
List<AprsReport> |
parse(String payload)
|
void |
removeListener(AprsCacheListener listener)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AprsParser()
public AprsParser(AprsCache cache)
cache
- - AprsCache
instanceMethod Detail |
---|
public AprsCache getCache()
public void addListener(AprsCacheListener listener)
public void removeListener(AprsCacheListener listener)
public List<AprsReport> parse(String payload) throws org.discotools.io.ParseException
parse
in interface org.discotools.io.Parser<AprsReport>
parse
in class org.discotools.io.AbstractParser<AprsReport>
org.discotools.io.ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |