Class ExtraOpenTRACInfoSourceDispatcher

java.lang.Object
org.ka2ddo.opentrac.ExtraOpenTRACInfoSourceDispatcher

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

    • registerOpenTRACAppender

      public static void registerOpenTRACAppender(ExtraOpenTRACInfoSourceDispatcher.OpenTRACIfc appender)
      Register a source of extra OpenTRAC message data.
      Parameters:
      appender - OpenTRACIfc implementation to add to the list of known sources
    • removeOpenTRACAppender

      public static void removeOpenTRACAppender(ExtraOpenTRACInfoSourceDispatcher.OpenTRACIfc appender)
      Unregister a source of extra OpenTRAC message data.
      Parameters:
      appender - OpenTRACIfc implementation to remove from the list of known sources
    • appendOpenTRACInfo

      public static void appendOpenTRACInfo(OpenTracMessage msg, OpenTracEntity entity)
      Cycle the specified OpenTRAC entity through all the registered sources of extra information.
      Parameters:
      msg - OpenTracMessage containing the entity to potentially be modified
      entity - OpenTracEntity for the station or object to be possibly updated