Class Digipeater.BlacklistMask

java.lang.Object
org.ka2ddo.yaac.ax25.Digipeater.BlacklistMask
Enclosing class:
Digipeater

public static class Digipeater.BlacklistMask extends Object
Class specifying the specific level of blacklisting for a particular callsidn-SSID.
Author:
Andrew Pavlin, KA2DDO
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    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 Type
    Method
    Description
    boolean
    isBlacklisted(int reasonMask)
    Test if the specified callsign is on the blacklist for a specific reason.
    Returns a string representation of the object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • MASK_BLOCK_TXIGATE

      public static final int MASK_BLOCK_TXIGATE
      Flag bit indicating the blacklisted station should not be Tx I-gated.
      See Also:
    • MASK_BLOCK_RXIGATE

      public static final int MASK_BLOCK_RXIGATE
      Flag bit indicating the blacklisted station should not be Rx I-gated.
      See Also:
    • MASK_BLOCK_DIGIPEAT

      public static final int MASK_BLOCK_DIGIPEAT
      Flag bit indicating the blacklisted station should not be digipeated.
      See Also:
    • MASK_BLOCK_QUERY

      public static final int MASK_BLOCK_QUERY
      Flag 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_ICONNECT
      Flag 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_ALL
      All the defined blocking mask bits.
      See Also:
    • callsignSSID

      public final String callsignSSID
      Callsign-SSID of the blacklisted station.
    • blockMask

      public int blockMask
      int value in map is bitmask indicating what is blocked for this callsign:
      See Also:
    • numBlocked

      public int numBlocked
      Number 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

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object.