|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--wonderly.jeaprs.ClientImpl | +--wonderly.jeaprs.aprs.APRSPosit
This is a JeAPRS APRSClient that implements the sending of position reports based on the configured parameters. It includes support for smart beaconing (per KA9MVA's HamHUD originated algorithms).
Nested Class Summary | |
class |
APRSPosit.APRSIcon
|
Field Summary |
Fields inherited from class wonderly.jeaprs.ClientImpl |
actions, APRS, dirty, evLis, ins, me, name, outs, stopped, strmLis |
Constructor Summary | |
APRSPosit()
|
Method Summary | |
void |
buildActions()
Put code in here to register all of the actions that you want to use. |
protected javax.swing.JMenuBar |
buildMenu()
Override this default implementation (which returns null to indicate no menu bar is to be used) to create your clients menu bar. |
javax.swing.JPanel |
buildPanel(javax.swing.JFrame parent)
Builds the applications user interface. |
wonderly.jeaprs.aprs.packet.APRSEventListener |
createEventListener()
This method needs to be implemented by subclasses and should return an APRSEventListener implementation that is applicable
for their client. |
java.io.OutputStream |
createStreamListener()
We don't need direct TNC stream access, so we just return null here. |
protected void |
doMeteorMode()
|
boolean |
getDebug()
|
int |
getRepeatDelay()
|
int |
getSmartBeaconFastRate()
|
int |
getSmartBeaconHighSpeed()
|
int |
getSmartBeaconLowSpeed()
|
int |
getSmartBeaconStoppedDelay()
|
int |
getSmartBeaconTurnMin()
|
int |
getSmartBeaconTurnThreshold()
|
int |
getSmartBeaconTurnTime()
|
java.lang.String |
getStaticLocation()
|
java.lang.String |
getStationEmailAddress()
|
java.lang.String |
getStationMeteorInfo()
|
boolean |
isBeaconing()
|
boolean |
isMeteorMode()
|
boolean |
isStaticPosit()
|
boolean |
isStatusing()
|
protected void |
processQuery(wonderly.jeaprs.aprs.packet.APRSPacket pkt,
wonderly.jeaprs.aprs.packet.APRSQuery msg)
|
void |
propertyChange(java.beans.PropertyChangeEvent ev)
|
void |
run()
|
void |
setBeaconing(boolean how)
|
void |
setDebug(boolean how)
|
void |
setMeteorMode(boolean how)
|
void |
setRepeatDelay(int cnt)
Millisecond delay for repeat beaconing delay must be a value related to .1, .25, .5, 1, 2, 3, 4, 5, 10, 20 or 30 minutes. |
void |
setSmartBeaconFastRate(int spd)
|
void |
setSmartBeaconHighSpeed(int spd)
|
void |
setSmartBeaconLowSpeed(int spd)
|
void |
setSmartBeaconStoppedDelay(int spd)
|
void |
setSmartBeaconTurnMin(int spd)
|
void |
setSmartBeaconTurnThreshold(int spd)
|
void |
setSmartBeaconTurnTime(int spd)
|
void |
setStaticLocation(java.lang.String str)
|
void |
setStaticPosit(boolean how)
|
void |
setStationEmailAddress(java.lang.String val)
|
void |
setStationMeteorInfo(java.lang.String val)
|
void |
setStatusing(boolean how)
|
void |
start()
Starts this client 'running' or whatever it needs when the user opens the client via the menus. |
void |
stop()
Stops the client when the user closes the window or deactivates it via the menus |
Methods inherited from class wonderly.jeaprs.ClientImpl |
addAPRSEventGenerator, addAPRSOutputStream, getAction, getAPRSEventGenerators, getAPRSOutputStreams, getName, getUIFactory, isDirty, isInputUser, isOutputUser, removeAPRSEventGenerator, removeAPRSOutputStream, setDirty, setName, toString, write, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public APRSPosit()
Method Detail |
public void start()
ClientImpl
start
in interface Client
start
in class ClientImpl
public void stop()
ClientImpl
stop
in interface Client
stop
in class ClientImpl
public java.lang.String getStationMeteorInfo()
public void setStationMeteorInfo(java.lang.String val)
public java.lang.String getStationEmailAddress()
public void setStationEmailAddress(java.lang.String val)
public void setMeteorMode(boolean how)
public boolean isMeteorMode()
public void setDebug(boolean how)
public boolean getDebug()
public void propertyChange(java.beans.PropertyChangeEvent ev)
propertyChange
in interface java.beans.PropertyChangeListener
public boolean isBeaconing()
public void setBeaconing(boolean how)
public boolean isStatusing()
public void setStatusing(boolean how)
public int getRepeatDelay()
public java.io.OutputStream createStreamListener()
createStreamListener
in class ClientImpl
public void setRepeatDelay(int cnt)
public boolean isStaticPosit()
public void setStaticPosit(boolean how)
public void setStaticLocation(java.lang.String str)
public java.lang.String getStaticLocation()
public wonderly.jeaprs.aprs.packet.APRSEventListener createEventListener()
ClientImpl
APRSEventListener
implementation that is applicable
for their client. Many times, a simple inner class is all that is
needed as in.
return new APRSEventAdapter() { public void message( APRSPacket pkt, APRSMessage msg ) { // Do something with message } };This will create a new object that is an instance of the
APRSEventAdapter
class. That class implements the APRSEventListener
interface
with empty methods so that you can just override the methods that you want
APRS packets for, and not have to deal with implementing all methods.
Just return null here if you don't need an event listener.
createEventListener
in class ClientImpl
APRSEventAdapter
,
APRSEventListener
protected void processQuery(wonderly.jeaprs.aprs.packet.APRSPacket pkt, wonderly.jeaprs.aprs.packet.APRSQuery msg)
protected javax.swing.JMenuBar buildMenu()
buildMenu
in class ClientImpl
public javax.swing.JPanel buildPanel(javax.swing.JFrame parent)
ClientImpl
buildMenu()
method can be used to create a menu bar
if neededed.
buildPanel
in class ClientImpl
ClientImpl.buildMenu()
protected void doMeteorMode()
public int getSmartBeaconLowSpeed()
public void setSmartBeaconLowSpeed(int spd)
public int getSmartBeaconStoppedDelay()
public void setSmartBeaconStoppedDelay(int spd)
public int getSmartBeaconTurnTime()
public void setSmartBeaconTurnTime(int spd)
public int getSmartBeaconTurnMin()
public void setSmartBeaconTurnMin(int spd)
public int getSmartBeaconTurnThreshold()
public void setSmartBeaconTurnThreshold(int spd)
public int getSmartBeaconHighSpeed()
public void setSmartBeaconHighSpeed(int spd)
public int getSmartBeaconFastRate()
public void setSmartBeaconFastRate(int spd)
public void buildActions()
ClientImpl
actions.put( "MyAction", act = new AbstractAction( "MyAction" ) { public void actionPerformed( ActionEvent ev ) { //...do something here } }); act.putValue( Action.NAME, "MyAction" );
buildActions
in class ClientImpl
ClientImpl.getAction(String)
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |