Package org.ka2ddo.opentrac
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.
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 TypeMethodDescriptionvoid
addDataToEntity
(OpenTracMessage msg, OpenTracEntity entity) Add any additional fields to the specified OpenTracEntity that this implementation deems necessary.
-
Method Details
-
addDataToEntity
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 modifiedentity
- OpenTracEntity for the station or object to be possibly updated
-