Package org.ka2ddo.yaac.ax25
Class Digipeater.BlacklistMask
java.lang.Object
org.ka2ddo.yaac.ax25.Digipeater.BlacklistMask
- Enclosing class:
- Digipeater
Class specifying the specific level of blacklisting for a particular callsidn-SSID.
- Author:
- Andrew Pavlin, KA2DDO
-
Field Summary
Modifier and TypeFieldDescriptionint
int value in map is bitmask indicating what is blocked for this callsign:final String
Callsign-SSID of the blacklisted station.static final int
All the defined blocking mask bits.static final int
Flag bit indicating the blacklisted station should not be digipeated.static final int
Flag bit indicating the blacklisted station should not be accepted when it tries to establish a connected-mode AX.25 session with this station.static final int
Flag bit indicating the blacklisted station should not be answered when it queries this station.static final int
Flag bit indicating the blacklisted station should not be Rx I-gated.static final int
Flag bit indicating the blacklisted station should not be Tx I-gated.int
Number of messages discarded -
Method Summary
Modifier and TypeMethodDescriptionboolean
isBlacklisted
(int reasonMask) Test if the specified callsign is on the blacklist for a specific reason.toString()
Returns a string representation of the object.
-
Field Details
-
MASK_BLOCK_TXIGATE
public static final int MASK_BLOCK_TXIGATEFlag bit indicating the blacklisted station should not be Tx I-gated.- See Also:
-
MASK_BLOCK_RXIGATE
public static final int MASK_BLOCK_RXIGATEFlag bit indicating the blacklisted station should not be Rx I-gated.- See Also:
-
MASK_BLOCK_DIGIPEAT
public static final int MASK_BLOCK_DIGIPEATFlag bit indicating the blacklisted station should not be digipeated.- See Also:
-
MASK_BLOCK_QUERY
public static final int MASK_BLOCK_QUERYFlag bit indicating the blacklisted station should not be answered when it queries this station.- See Also:
-
MASK_BLOCK_ICONNECT
public static final int MASK_BLOCK_ICONNECTFlag bit indicating the blacklisted station should not be accepted when it tries to establish a connected-mode AX.25 session with this station.- See Also:
-
MASK_BLOCK_ALL
public static final int MASK_BLOCK_ALLAll the defined blocking mask bits.- See Also:
-
callsignSSID
Callsign-SSID of the blacklisted station. -
blockMask
public int blockMaskint value in map is bitmask indicating what is blocked for this callsign: -
numBlocked
public int numBlockedNumber of messages discarded
-
-
Method Details
-
isBlacklisted
public boolean isBlacklisted(int reasonMask) Test if the specified callsign is on the blacklist for a specific reason.- Parameters:
reasonMask
- int bitmask of reason why this- Returns:
- boolean true if the callsign is on the blacklist for any reason
-
toString
Returns a string representation of the object.
-