public class StatusData extends java.lang.Object implements AX25FrameSource, java.lang.Cloneable, SendableMessage
| Modifier and Type | Field and Description |
|---|---|
java.lang.String[] |
digipeaters |
boolean |
enabled |
java.lang.String |
format |
boolean |
prefixMaidenhead |
boolean |
prefixTime |
| Constructor and Description |
|---|
StatusData() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelTransmission() |
java.lang.Object |
clone()
Creates and returns a copy of this object.
|
void |
copyInto(StatusData sd,
java.util.prefs.Preferences root)
Copy the contents of this StatusData object into the specified one, and tell the other one that
it was changed if any changes occur.
|
AX25Message |
dup()
Creates and returns a copy of this Message.
|
byte[] |
getBody(boolean countTransmission,
byte protocolId,
AX25Frame frame)
Get an instance of this message, suitable for transmitting.
|
Connector |
getConnector()
Specify the Connector this message should be transmitted through.
|
AX25Frame[] |
getFrames(boolean incrementXmtCount,
byte protocolId,
java.lang.String senderCallsign)
Get one or more AX25Frames of the data to transmit.
|
int |
getNumTransmitsBeforeDecay()
Get the number of cycles for a complete iteration over the proportional pathing digipeat path set.
|
boolean |
isEnabled()
Test if message should still be transmitted.
|
void |
queueForTransmission() |
void |
queueNow() |
static StatusData |
readFromPreferences(java.util.prefs.Preferences root,
java.lang.String beaconName) |
void |
resetTransmitCount() |
void |
writeToPreferences(java.util.prefs.Preferences root) |
public java.lang.String format
public boolean enabled
public boolean prefixMaidenhead
public boolean prefixTime
public java.lang.String[] digipeaters
public AX25Message dup()
dup in interface SendableMessagepublic AX25Frame[] getFrames(boolean incrementXmtCount, byte protocolId, java.lang.String senderCallsign)
getFrames in interface AX25FrameSourceincrementXmtCount - indicate whether the transmit counter (used to cycle through
proportional pathing) should be incrementedprotocolId - indicate the protocol to generate this frame for (not relevant for
digipeated frames); zero to indicate current protocolsenderCallsign - String of local callsign sending this message (may be ignored if digipeating
a message from another station)public int getNumTransmitsBeforeDecay()
getNumTransmitsBeforeDecay in interface AX25FrameSourcepublic Connector getConnector()
getConnector in interface AX25FrameSourceConnector.CAP_XMT_PACKET_DATApublic byte[] getBody(boolean countTransmission,
byte protocolId,
AX25Frame frame)
getBody in interface SendableMessagecountTransmission - number of times the message has been transmitted.protocolId - AX.25 protocol ID to generate the message in, or 0 for default protocol; currently,
only NOLVL3 (APRS) and OPENTRAC are supported.frame - AX25Frame into which the message will be placed; the decoded message (as opposed to the byte
array encoding) should be stored into the field frame.parsedAX25MsgAX25Frame.parsedAX25Msgpublic boolean isEnabled()
isEnabled in interface SendableMessagepublic void writeToPreferences(java.util.prefs.Preferences root)
throws java.util.prefs.BackingStoreException
java.util.prefs.BackingStoreExceptionpublic static StatusData readFromPreferences(java.util.prefs.Preferences root, java.lang.String beaconName) throws java.util.prefs.BackingStoreException
java.util.prefs.BackingStoreExceptionpublic void queueNow()
public void queueForTransmission()
public void cancelTransmission()
public void resetTransmitCount()
public java.lang.Object clone()
clone in class java.lang.Objectpublic void copyInto(StatusData sd, java.util.prefs.Preferences root)
sd - target StatusData to copy intoroot - base Preferences object into which updated StatusData should be saved (or null to not save)