Interface ExtraOpenTRACInfoSourceDispatcher.OpenTRACIfc

Enclosing class:
ExtraOpenTRACInfoSourceDispatcher
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ExtraOpenTRACInfoSourceDispatcher.OpenTRACIfc
This interface defines a source of additional information in OpenTRAC structured format. The implementation is responsible to ensure that its additions do not make the resulting packet exceed the maximum body length for an OpenTRAC packet.
Author:
Andrew Pavlin, KA2DDO
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add any additional fields to the specified OpenTracEntity that this implementation deems necessary.
  • Method Details

    • addDataToEntity

      void addDataToEntity(OpenTracMessage msg, OpenTracEntity entity)
      Add any additional fields to the specified OpenTracEntity that this implementation deems necessary. The OpenTracMessage is the one containing the entity, and is provided solely so reaching maximum packet length can be checked.
      Parameters:
      msg - OpenTracMessage containing the entity to potentially be modified
      entity - OpenTracEntity for the station or object to be possibly updated