public class ExtraOpenTRACInfoSourceDispatcher
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ExtraOpenTRACInfoSourceDispatcher.OpenTRACIfc
This interface defines a source of additional information in OpenTRAC structured
format.
|
Modifier and Type | Method and Description |
---|---|
static void |
appendOpenTRACInfo(OpenTracMessage msg,
OpenTracEntity entity)
Cycle the specified OpenTRAC entity through all the registered sources of extra information.
|
static void |
registerOpenTRACAppender(ExtraOpenTRACInfoSourceDispatcher.OpenTRACIfc appender)
Register a source of extra OpenTRAC message data.
|
static void |
removeOpenTRACAppender(ExtraOpenTRACInfoSourceDispatcher.OpenTRACIfc appender)
Unregister a source of extra OpenTRAC message data.
|
public static void registerOpenTRACAppender(ExtraOpenTRACInfoSourceDispatcher.OpenTRACIfc appender)
appender
- OpenTRACIfc implementation to add to the list of known sourcespublic static void removeOpenTRACAppender(ExtraOpenTRACInfoSourceDispatcher.OpenTRACIfc appender)
appender
- OpenTRACIfc implementation to remove from the list of known sourcespublic static void appendOpenTRACInfo(OpenTracMessage msg, OpenTracEntity entity)
msg
- OpenTracMessage containing the entity to potentially be modifiedentity
- OpenTracEntity for the station or object to be possibly updated