|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.devices.gps.GPS
public abstract class GPS
This is the abstract base-class that encapsulates the functionality of a generic GPS-unit.
| Field Summary | |
|---|---|
protected java.util.HashMap |
zListeners
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
protected |
GPS()
Creates a new GPS object. |
| Method Summary | |
|---|---|
void |
addGPSlistener(IGPSlistener l)
Adds the specified IGPSlistener to receive data from the GPS. |
void |
addLapListener(ILapListener l)
Adds l to the list of listeners interested in waypoint-data. |
void |
addTrackListener(ITrackpointListener l)
Adds l to the list of listeners interested in waypoint-data. |
protected void |
addTransferListener(ITransferListener l)
Adds l to the list of listeners interested in transfer-events. |
void |
addWaypointListener(IWaypointListener l)
Adds l to the list of listeners interested in waypoint-data. |
protected void |
fireDateData(IDate dat)
Goes through the list of GPSlisteners and distributes the new date data. |
void |
fireLapData(ILap lp)
Goes through the list of Waypoint-listeners and distributes the waypoint wp. |
protected void |
firePositionData(IPosition pos)
Goes through the list of GPSlisteners and distributes the new position data. |
protected void |
fireTimeData(ITime time)
Goes through the list of GPSlisteners and distributes the new time data. |
void |
fireTrackpointData(ITrackpoint tp)
Goes through the list of Waypoint-listeners and distributes the waypoint wp. |
void |
fireTransferComplete()
Notifies listeners of the end of a stream of data. |
void |
fireTransferStart(int number)
Notifies listeners of the beginning of a stream of data. |
void |
fireWaypointData(IWaypoint wp)
Goes through the list of Waypoint-listeners and distributes the waypoint wp. |
abstract java.lang.String |
getDescription()
Requests a descriptive string from the GPS. |
void |
removeGPSListener(IGPSlistener l)
Removes the the GPS-listener l from the list of GPS-listeners. |
void |
removeLapListener(ILapListener l)
Removes the the Waypoint-listener l from the list of Waypoint-listeners. |
void |
removeTrackListener(ITrackpointListener l)
Removes the the Waypoint-listener l from the list of Waypoint-listeners. |
protected void |
removeTransferListener(ITransferListener l)
Removes the the transfer-listener l from the list of transfer-listeners. |
void |
removeWaypointListener(IWaypointListener l)
Removes the the Waypoint-listener l from the list of Waypoint-listeners. |
abstract void |
requestDate()
Makes a request for the specified data to the GPS. |
abstract void |
requestPosition()
Makes a request for the specified data to the GPS. |
abstract void |
requestTime()
Makes a request for the specified data to the GPS. |
abstract void |
requestTracks()
Asks the GPS to transmit all the waypoints in it's memory. |
abstract void |
requestWaypoints()
Asks the GPS to transmit all the waypoints in it's memory. |
abstract void |
setAutoTransmit(boolean t)
Asks the GPS to either start or stop transmitting data periodically. |
abstract void |
shutdown(boolean b)
Stops communication with GPS. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.HashMap zListeners
| Constructor Detail |
|---|
protected GPS()
| Method Detail |
|---|
public void addGPSlistener(IGPSlistener l)
l - DOCUMENT ME!public void removeGPSListener(IGPSlistener l)
l - DOCUMENT ME!protected void addTransferListener(ITransferListener l)
l - DOCUMENT ME!protected void removeTransferListener(ITransferListener l)
l - DOCUMENT ME!public void addWaypointListener(IWaypointListener l)
l - DOCUMENT ME!public void removeWaypointListener(IWaypointListener l)
l - DOCUMENT ME!public void addTrackListener(ITrackpointListener l)
l - DOCUMENT ME!public void removeTrackListener(ITrackpointListener l)
l - DOCUMENT ME!public void addLapListener(ILapListener l)
l - DOCUMENT ME!public void removeLapListener(ILapListener l)
l - DOCUMENT ME!public void fireTransferStart(int number)
number - DOCUMENT ME!public void fireWaypointData(IWaypoint wp)
wp - DOCUMENT ME!public void fireTrackpointData(ITrackpoint tp)
tp - DOCUMENT ME!public void fireLapData(ILap lp)
lp - DOCUMENT ME!public void fireTransferComplete()
protected void firePositionData(IPosition pos)
pos - DOCUMENT ME!protected void fireDateData(IDate dat)
dat - DOCUMENT ME!protected void fireTimeData(ITime time)
time - DOCUMENT ME!public abstract void requestPosition()
public abstract void requestTime()
public abstract void requestDate()
public abstract java.lang.String getDescription()
public abstract void requestWaypoints()
public abstract void requestTracks()
public abstract void setAutoTransmit(boolean t)
t - DOCUMENT ME!public abstract void shutdown(boolean b)
b - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||