root / trunk / extensions / extGPS / src / org / gvsig / gps / listeners / GPSEventListener.java @ 4752
History | View | Annotate | Download (3.16 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program is distributed in the hope that it will be useful,
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
18 |
*
|
19 |
* For more information, contact:
|
20 |
*
|
21 |
* Generalitat Valenciana
|
22 |
* Conselleria d'Infraestructures i Transport
|
23 |
* Av. Blasco Ib??ez, 50
|
24 |
* 46010 VALENCIA
|
25 |
* SPAIN
|
26 |
*
|
27 |
* +34 963862235
|
28 |
* gvsig@gva.es
|
29 |
* www.gvsig.gva.es
|
30 |
*
|
31 |
* or
|
32 |
*
|
33 |
* IVER T.I. S.A
|
34 |
* Salamanca 50
|
35 |
* 46005 Valencia
|
36 |
* Spain
|
37 |
*
|
38 |
* +34 963163400
|
39 |
* dac@iver.es
|
40 |
*/
|
41 |
|
42 |
/* CVS MESSAGES:
|
43 |
*
|
44 |
* $Id: GPSEventListener.java 4752 2006-04-06 10:36:05Z jaume $
|
45 |
* $Log$
|
46 |
* Revision 1.2 2006-04-06 10:35:07 jaume
|
47 |
* *** empty log message ***
|
48 |
*
|
49 |
* Revision 1.1 2006/04/03 16:10:27 jaume
|
50 |
* *** empty log message ***
|
51 |
*
|
52 |
* Revision 1.1 2006/03/31 09:55:34 jaume
|
53 |
* *** empty log message ***
|
54 |
*
|
55 |
*
|
56 |
*/
|
57 |
package org.gvsig.gps.listeners; |
58 |
|
59 |
/**
|
60 |
* Inteface defining all the events received from the GPSDriver.
|
61 |
*
|
62 |
* @author jaume dominguez faus - jaume.dominguez@iver.es
|
63 |
*/
|
64 |
public interface GPSEventListener { |
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 |
*/
|
77 |
public void newLonLatPositionReceived(double lon, double lat); |
78 |
|
79 |
/**
|
80 |
* Invoked when the connection was lost.
|
81 |
*/
|
82 |
public void connectionLost(); |
83 |
|
84 |
/**
|
85 |
* Invoked when a connection was established.
|
86 |
*/
|
87 |
public void connectionEstablished(); |
88 |
|
89 |
/**
|
90 |
* Invoked when the signal strenght has changed.
|
91 |
* @param level
|
92 |
*/
|
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 |
*/
|
100 |
public void speedChanged(float speed, short course); |
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); |
122 |
} |