Package org.ka2ddo.aprs
Class ExtraAPRSInfoSourceDispatcher
java.lang.Object
org.ka2ddo.aprs.ExtraAPRSInfoSourceDispatcher
This class registers and dispatches to sources of additional APRS packet
body text, 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 APRS free-text comment format. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
appendAPRSInfo
(String objectName, StringBuilder commentBuilder, int lengthOfComment) Cycle the specified APRS message through all the registered sources of extra information.static void
Register a source of extra APRS message data.static void
Unregister a source of extra APRS message data.
-
Method Details
-
registerAPRSAppender
Register a source of extra APRS message data.- Parameters:
appender
- APRSIfc implementation to add to the list of known sources
-
removeAPRSAppender
Unregister a source of extra APRS message data.- Parameters:
appender
- APRSIfc implementation to remove from the list of known sources
-
appendAPRSInfo
public static void appendAPRSInfo(String objectName, StringBuilder commentBuilder, int lengthOfComment) Cycle the specified APRS message through all the registered sources of extra information.- Parameters:
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
-