|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ka2ddo.yaac.io.StatusData
public class StatusData
This class defines all the data for transmitting an APRS Status message for this station.
Field Summary | |
---|---|
java.lang.String[] |
digipeaters
|
boolean |
enabled
|
java.lang.String |
format
|
boolean |
prefixMaidenhead
|
boolean |
prefixTime
|
Constructor Summary | |
---|---|
StatusData()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String format
public boolean enabled
public boolean prefixMaidenhead
public boolean prefixTime
public java.lang.String[] digipeaters
Constructor Detail |
---|
public StatusData()
Method Detail |
---|
public AX25Message dup()
dup
in interface SendableMessage
public AX25Frame[] getFrames(boolean incrementXmtCount, byte protocolId, java.lang.String senderCallsign)
getFrames
in interface AX25FrameSource
incrementXmtCount
- 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 AX25FrameSource
public Connector getConnector()
getConnector
in interface AX25FrameSource
Connector.CAP_XMT_PACKET_DATA
public byte[] getBody(boolean countTransmission, byte protocolId, AX25Frame frame)
getBody
in interface SendableMessage
countTransmission
- 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.parsedAX25Msg
AX25Frame.parsedAX25Msg
public boolean isEnabled()
isEnabled
in interface SendableMessage
public void writeToPreferences(java.util.prefs.Preferences root) throws java.util.prefs.BackingStoreException
java.util.prefs.BackingStoreException
public static StatusData readFromPreferences(java.util.prefs.Preferences root, java.lang.String beaconName) throws java.util.prefs.BackingStoreException
java.util.prefs.BackingStoreException
public void queueNow()
public void queueForTransmission()
public void cancelTransmission()
public void resetTransmitCount()
public java.lang.Object clone()
clone
in class java.lang.Object
public 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |