Revision 4752 trunk/extensions/extGPS/src/org/gvsig/gps/listeners/GPSEventListener.java
GPSEventListener.java | ||
---|---|---|
43 | 43 |
* |
44 | 44 |
* $Id$ |
45 | 45 |
* $Log$ |
46 |
* Revision 1.1 2006-04-03 16:10:27 jaume
|
|
46 |
* Revision 1.2 2006-04-06 10:35:07 jaume
|
|
47 | 47 |
* *** empty log message *** |
48 | 48 |
* |
49 |
* Revision 1.1 2006/04/03 16:10:27 jaume |
|
50 |
* *** empty log message *** |
|
51 |
* |
|
49 | 52 |
* Revision 1.1 2006/03/31 09:55:34 jaume |
50 | 53 |
* *** empty log message *** |
51 | 54 |
* |
... | ... | |
53 | 56 |
*/ |
54 | 57 |
package org.gvsig.gps.listeners; |
55 | 58 |
|
59 |
/** |
|
60 |
* Inteface defining all the events received from the GPSDriver. |
|
61 |
* |
|
62 |
* @author jaume dominguez faus - jaume.dominguez@iver.es |
|
63 |
*/ |
|
56 | 64 |
public interface GPSEventListener { |
57 |
public void unhandledMessage(String msg) ; |
|
65 |
/** |
|
66 |
* Invoked when a message that has not been analyzed (in purpose or because |
|
67 |
* the analyzer could not make it) |
|
68 |
* @param msg, a string containing the NMEA message. |
|
69 |
*/ |
|
70 |
public void unhandledMessage(String msg); |
|
71 |
|
|
72 |
/** |
|
73 |
* Invoked when the value for the position in longitude and latitude. |
|
74 |
* @param longitude in degrees (decimal fractions). |
|
75 |
* @param latitude in degrees (decimal fractions). |
|
76 |
*/ |
|
58 | 77 |
public void newLonLatPositionReceived(double lon, double lat); |
78 |
|
|
79 |
/** |
|
80 |
* Invoked when the connection was lost. |
|
81 |
*/ |
|
59 | 82 |
public void connectionLost(); |
83 |
|
|
84 |
/** |
|
85 |
* Invoked when a connection was established. |
|
86 |
*/ |
|
60 | 87 |
public void connectionEstablished(); |
88 |
|
|
89 |
/** |
|
90 |
* Invoked when the signal strenght has changed. |
|
91 |
* @param level |
|
92 |
*/ |
|
61 | 93 |
public void signalLevelChanged(float level); |
94 |
|
|
95 |
/** |
|
96 |
* Invoked when the speed and/or the course have changed. |
|
97 |
* @param speed, in km/h |
|
98 |
* @param course, from 0 to 359 |
|
99 |
*/ |
|
62 | 100 |
public void speedChanged(float speed, short course); |
63 |
public void estimatedPosErrorChanged(double f); |
|
64 |
public void heightChanged(); |
|
101 |
|
|
102 |
/** |
|
103 |
* Invoked when the estimated error has changed. |
|
104 |
* @param e, TODO: what exactly it is? |
|
105 |
*/ |
|
106 |
public void estimatedPosErrorChanged(double e); |
|
107 |
|
|
108 |
/** |
|
109 |
* Invoked when the value for the height (z) changes |
|
110 |
* @param height, in meters. |
|
111 |
*/ |
|
112 |
public void heightChanged(float height); |
|
113 |
|
|
114 |
/** |
|
115 |
* Invoked when the any of the values of the position, horizontal, |
|
116 |
* or vertical precision have changed |
|
117 |
* @param pDop, position precision. |
|
118 |
* @param hDop, horizontal precision. |
|
119 |
* @param vDop, vertical precision. |
|
120 |
*/ |
|
121 |
public void precisionChanged(float pDop, float hDop, float vDop); |
|
65 | 122 |
} |
Also available in: Unified diff