|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ka2ddo.yaac.io.SendableMessageWrapper
org.ka2ddo.yaac.io.ObjectReportSender
public class ObjectReportSender
This class extends SendableMessageWrapper to cancel transmission when the ObjectReport is overridden by another source (i.e., taken over).
| Constructor Summary | |
|---|---|
ObjectReportSender(ObjectReport msg)
Wrap an ObjectReport for locally initiated transmission as many times as the object definition says (3 times for transient objects, forever for permanent objects), |
|
ObjectReportSender(ObjectReport msg,
int maxTransmits)
Wrap an ObjectReport for locally initiated transmission the specified number of times, |
|
| Method Summary | |
|---|---|
protected void |
cleanup()
Do any cleanup work involved in removing this wrapped message from the transmission queue. |
void |
messageAdded(StationState ss,
int index,
AX25Message msg)
Called when a Message is added to the history for a station in the tracker. |
void |
messageDeleted(StationState ss,
int index,
AX25Message msg)
Called when a AX25Message is deleted from the history for a station in the tracker. |
static ObjectReportSender |
readFromPreferences(java.util.prefs.Preferences prefs,
java.lang.String objectName)
Recreate an ObjectReport and its encapsulating ObjectReportSender from the preferences cache. |
void |
removeFromPreferences(java.util.prefs.Preferences prefs)
Delete this ObjectReportSender and its contained ObjectReport from the preferences cache. |
void |
stationAdded(StationState ss,
int index)
Called when a new station is initially added to the tracker. |
void |
stationDeleted(StationState ss,
int index)
Called when an existing station is deleted from the tracker. |
void |
stationUpdated(StationState ss)
Called when an existing station is updated with new information in the tracker. |
void |
writeToPreferences(java.util.prefs.Preferences prefs)
Store this ObjectReportSender and its contained ObjectReport in the preferences cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectReportSender(ObjectReport msg)
msg - ObjectReport to transmit
public ObjectReportSender(ObjectReport msg,
int maxTransmits)
msg - ObjectReport to transmitmaxTransmits - number of times the ObjectReport should be transmitted| Method Detail |
|---|
public void stationAdded(StationState ss,
int index)
stationAdded in interface TrackerListenerss - StationState containing the station's information; the initial AX25Message
will not yet be stored within the StationState objectindex - zero-based integer sequence number for this station in the StationTrackerpublic void stationUpdated(StationState ss)
stationUpdated in interface TrackerListenerss - StationState containing the station's information; the new AX25Message
will not yet be stored within the StationState object
public void stationDeleted(StationState ss,
int index)
stationDeleted in interface TrackerListenerss - StationState containing the station's informationindex - zero-based integer sequence number for this station in the StationTracker
public void messageAdded(StationState ss,
int index,
AX25Message msg)
messageAdded in interface TrackerListenerss - StationState containing the station's informationindex - zero-based index of the message added to the StationState objectmsg - APRS Message object being added to the tracker; note that non-APRS packets
that can still be decoded (such as OpenTRAC) will also be passed
here; AX25Frames that cannot be decoded will pass null here
public void messageDeleted(StationState ss,
int index,
AX25Message msg)
messageDeleted in interface TrackerListenerss - StationState containing the station's information; the AX25Message
will already be removed from the StationState objectindex - zero-based index of the message removed from the StationState objectmsg - APRS Message object being removed from the tracker; note that non-APRS packets
that can still be decoded (such as OpenTRAC) will also be passed
here; AX25Frames that cannot be decoded will pass null herepublic void writeToPreferences(java.util.prefs.Preferences prefs)
prefs - Preferences node to contain the object recordprotected void cleanup()
cleanup in class SendableMessageWrapperpublic void removeFromPreferences(java.util.prefs.Preferences prefs)
prefs - Preferences node containing the object record
public static ObjectReportSender readFromPreferences(java.util.prefs.Preferences prefs,
java.lang.String objectName)
prefs - the Preferences node containing the object informationobjectName - String name of cached Object/Item
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||