public class ExtraAPRSInfoSourceDispatcher
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ExtraAPRSInfoSourceDispatcher.APRSIfc
This interface defines a source of additional information in APRS free-text comment
format.
|
Modifier and Type | Method and Description |
---|---|
static void |
appendAPRSInfo(java.lang.String objectName,
java.lang.StringBuilder commentBuilder,
int lengthOfComment)
Cycle the specified APRS message through all the registered sources of extra information.
|
static void |
registerAPRSAppender(ExtraAPRSInfoSourceDispatcher.APRSIfc appender)
Register a source of extra APRS message data.
|
static void |
removeAPRSAppender(ExtraAPRSInfoSourceDispatcher.APRSIfc appender)
Unregister a source of extra APRS message data.
|
public static void registerAPRSAppender(ExtraAPRSInfoSourceDispatcher.APRSIfc appender)
appender
- APRSIfc implementation to add to the list of known sourcespublic static void removeAPRSAppender(ExtraAPRSInfoSourceDispatcher.APRSIfc appender)
appender
- APRSIfc implementation to remove from the list of known sourcespublic static void appendAPRSInfo(java.lang.String objectName, java.lang.StringBuilder commentBuilder, int lengthOfComment)
objectName
- String name of object being reported, or null if the local station is being
reportedcommentBuilder
- StringBuilder used to assemble the packet bodylengthOfComment
- int number of bytes the caller wants to tack on after all extension
implementors are done stretching the packet