Class QueryResponder.OnePortFrameWrapper

java.lang.Object
org.ka2ddo.yaac.core.QueryResponder.OnePortFrameWrapper
All Implemented Interfaces:
AX25FrameSource
Enclosing class:
QueryResponder

public static class QueryResponder.OnePortFrameWrapper extends Object implements AX25FrameSource
Wrap a AX25Frame so it will be sent to exactly one outgoing PortConnector.
Author:
Andrew Pavlin, KA2DDO
  • Constructor Details

    • OnePortFrameWrapper

      public OnePortFrameWrapper(AX25FrameSource realSource, Connector port)
      Create a OnePortFrameWrapper for the specified frame(s) directed to the specified ports.
      Parameters:
      realSource - AX25FrameWrapper (might be a naked AX25Frame) to send
      port - Connector to transmit the frame through
  • Method Details

    • getConnector

      public Connector getConnector()
      Specify the Connector this message should be transmitted through.
      Specified by:
      getConnector in interface AX25FrameSource
      Returns:
      a specific Connector instance to transmit through, or null for all applicable ports (Connector.CAP_XMT_PACKET_DATA and not rejecting this specific packet [such as IGateConnectors shouldn't re-transmit something received from the IGate])
      See Also:
    • getFrames

      public AX25Frame[] getFrames(boolean incrementXmtCount, ProtocolFamily protocolId, String senderCallsign)
      Get one or more AX25Frames of the data to transmit.
      Specified by:
      getFrames in interface AX25FrameSource
      Parameters:
      incrementXmtCount - indicate whether the transmit counter (used to cycle through proportional pathing) should be incremented
      protocolId - indicate the protocol to generate this frame for
      senderCallsign - String of local callsign sending this message (may be ignored if digipeating a message from another station)
      Returns:
      array of AX25Frame objects to transmit, or null indicating nothing to transmit in the specified protocol
    • getNumTransmitsBeforeDecay

      public int getNumTransmitsBeforeDecay()
      Get number of times frame will be retransmitted before inter-packet delay is increased.
      Specified by:
      getNumTransmitsBeforeDecay in interface AX25FrameSource
      Returns:
      transmission count before interval increase