Package org.ka2ddo.opentrac
Class ExtraOpenTRACInfoSourceDispatcher
java.lang.Object
org.ka2ddo.opentrac.ExtraOpenTRACInfoSourceDispatcher
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
This interface defines a source of additional information in OpenTRAC structured format. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
appendOpenTRACInfo
(OpenTracMessage msg, OpenTracEntity entity) Cycle the specified OpenTRAC entity through all the registered sources of extra information.static void
Register a source of extra OpenTRAC message data.static void
Unregister a source of extra OpenTRAC message data.
-
Method Details
-
registerOpenTRACAppender
Register a source of extra OpenTRAC message data.- Parameters:
appender
- OpenTRACIfc implementation to add to the list of known sources
-
removeOpenTRACAppender
Unregister a source of extra OpenTRAC message data.- Parameters:
appender
- OpenTRACIfc implementation to remove from the list of known sources
-
appendOpenTRACInfo
Cycle the specified OpenTRAC entity through all the registered sources of extra information.- Parameters:
msg
- OpenTracMessage containing the entity to potentially be modifiedentity
- OpenTracEntity for the station or object to be possibly updated
-