|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ka2ddo.yaac.ax25.Digipeater
public class Digipeater
This singleton handles digipeating operations.
Nested Class Summary | |
---|---|
static class |
Digipeater.TXIGatedStationStatus
Status of stations trying to RF-transmit through this station from the Internet. |
static interface |
Digipeater.TXIGatedStationStatusListener
Interface for listeners to be informed of changes to the list of Tx I-gated stations. |
Field Summary | |
---|---|
java.util.ArrayList<java.lang.String> |
listOfBlacklistedStations
List of callsigns on the sender's blacklist (do not digipeat or I-gate). |
java.util.ArrayList<Digipeater.TXIGatedStationStatus> |
listOfTXIGatedStations
List of stations currently being forwarded from the Internet to local RF networks by this station. |
Method Summary | |
---|---|
void |
addDuplicateCheckedAX25Listener(DuplicateCheckedAX25Listener l)
Register a listener to be informed of receipt of AX25Messages who wants to know if the frame is a duplicate. |
int |
addToBlacklist(java.lang.String callsign)
Add a callsign to the blacklist. |
void |
addTXIGatedStationStatusListener(Digipeater.TXIGatedStationStatusListener l)
Register a listener to be informed when a station is added, updated, or removed from the list of stations that this station will Tx I-gate to. |
void |
aprsMessageReceived(Message msg)
DO NOT CALL. |
void |
consumeAX25Frame(AX25Frame frame,
Connector connector)
DO NOT CALL. |
int |
getCountDigiFromIgateToRf()
Report the number of APRS messages forwarded by this station from APRS-IS to RF. |
static Digipeater |
getInstance()
Get the singleton instance of the digipeater logic. |
static long |
getMaxAgeForLocal()
Get the maximum age of RF-received messages that will be considered in deciding if a station is local. |
static int |
getMaxHopsForLocal()
Get the maximum number of hops to be considered a "local" station. |
boolean |
isBlacklisted(java.lang.String callsign)
Test if the specified callsign is on the blacklist. |
boolean |
isDoRxIGate()
Reports if RF-to-IP packet gating is allowed. |
boolean |
isDoTxIGate()
Reports if IP-to-RF packet gating is allowed. |
void |
parsedAX25MessageReceived(byte pid,
AX25Message msg)
Delivers the next message received by YAAC that is some sort of parsed AX.25 higher-level message. |
void |
rememberLocallyOriginatedMessage(AX25Frame frame)
Record in the short-term memory that the specified frame has been locally originated by this station and should not be digipeated again. |
void |
removeDuplicateCheckedAX25Listener(DuplicateCheckedAX25Listener l)
Unregister a listener who no longer wants to be informed of receipt of AX25Messages. |
int |
removeFromBlacklist(java.lang.String callsign)
Remove a callsign from the blacklist. |
void |
removeTXIGatedStationStatusListener(Digipeater.TXIGatedStationStatusListener l)
Unregister a listener who no longer want to be informed when a station is added, updated, or removed from the list of stations that this station will Tx I-gate to. |
void |
setDoRxIGate(boolean doRxIGate)
Specify if RF-to-IP packet gating is allowed. |
void |
setDoTxIGate(boolean doTxIGate)
Specify if IP-to-RF packet gating is allowed. |
static void |
setMaxAgeForLocal(long maxAgeForLocal)
Set the maximum age of RF-received messages that will be considered in deciding if a station is local. |
static void |
setMaxHopsForLocal(int maxHopsForLocal)
Set the maximum number of hops to be considered a "local" station. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.util.ArrayList<Digipeater.TXIGatedStationStatus> listOfTXIGatedStations
public final java.util.ArrayList<java.lang.String> listOfBlacklistedStations
Method Detail |
---|
public static Digipeater getInstance()
public boolean isDoRxIGate()
public void setDoRxIGate(boolean doRxIGate)
doRxIGate
- boolean true if RF-to-IP packet gating is allowedpublic boolean isDoTxIGate()
public void setDoTxIGate(boolean doTxIGate)
doTxIGate
- boolean true if IP-to-RF packet gating is allowedpublic static int getMaxHopsForLocal()
public static void setMaxHopsForLocal(int maxHopsForLocal)
maxHopsForLocal
- maximum hop count where 1 is direct (not digipeated), 2 is digipeated once, etc.public static long getMaxAgeForLocal()
public static void setMaxAgeForLocal(long maxAgeForLocal)
maxAgeForLocal
- maximum acceptable age in millisecondspublic int addToBlacklist(java.lang.String callsign)
callsign
- String of callsign
public int removeFromBlacklist(java.lang.String callsign)
callsign
- String of callsign
public boolean isBlacklisted(java.lang.String callsign)
callsign
- String calsign to test
public void rememberLocallyOriginatedMessage(AX25Frame frame)
frame
- AX25Frame to be rememberedpublic void aprsMessageReceived(Message msg)
aprsMessageReceived
in interface AprsMessageListener
msg
- some subclass of Message containing the message contents; the message should have
an AX25Frame connected to itAX25Frame
,
AX25Message.ax25Frame
,
AX25Message.getAx25Frame()
public void consumeAX25Frame(AX25Frame frame, Connector connector)
consumeAX25Frame
in interface AX25FrameListener
frame
- AX25Frame to consider digipeatingconnector
- Connector that frame was received frompublic void parsedAX25MessageReceived(byte pid, AX25Message msg)
parsedAX25MessageReceived
in interface ParsedAX25MessageListener
pid
- AX.25 protocol IDmsg
- some subclass of Message containing the message contents; the message should have
an AX25Frame connected to itAX25Frame
,
AX25Message.ax25Frame
,
AX25Message.getAx25Frame()
public void addDuplicateCheckedAX25Listener(DuplicateCheckedAX25Listener l)
l
- DuplicateCheckedAX25Listenerpublic void removeDuplicateCheckedAX25Listener(DuplicateCheckedAX25Listener l)
l
- DuplicateCheckedAX25Listenerpublic int getCountDigiFromIgateToRf()
public void addTXIGatedStationStatusListener(Digipeater.TXIGatedStationStatusListener l)
l
- TXIGatedStationStatusListenerpublic void removeTXIGatedStationStatusListener(Digipeater.TXIGatedStationStatusListener l)
l
- TXIGatedStationStatusListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |