Class ExtraAPRSInfoSourceDispatcher

java.lang.Object
org.ka2ddo.aprs.ExtraAPRSInfoSourceDispatcher

public class ExtraAPRSInfoSourceDispatcher extends Object
This class registers and dispatches to sources of additional APRS packet body text, based on the arbitrary business logic of the sources versus the station callsign-SSID or object name.
Author:
Andrew Pavlin, KA2DDO
  • Method Details

    • registerAPRSAppender

      public static void registerAPRSAppender(ExtraAPRSInfoSourceDispatcher.APRSIfc appender)
      Register a source of extra APRS message data.
      Parameters:
      appender - APRSIfc implementation to add to the list of known sources
    • removeAPRSAppender

      public static void removeAPRSAppender(ExtraAPRSInfoSourceDispatcher.APRSIfc appender)
      Unregister a source of extra APRS message data.
      Parameters:
      appender - APRSIfc implementation to remove from the list of known sources
    • appendAPRSInfo

      public static void appendAPRSInfo(String objectName, StringBuilder commentBuilder, int lengthOfComment)
      Cycle the specified APRS message through all the registered sources of extra information.
      Parameters:
      objectName - String name of object being reported, or null if the local station is being reported
      commentBuilder - StringBuilder used to assemble the packet body
      lengthOfComment - int number of bytes the caller wants to tack on after all extension implementors are done stretching the packet