View Javadoc

1   /*
2    * Trip Tracker, a real-time position tracking system for the Internet.
3    * Copyright (C) 2006  Team Trip Tracker
4    *
5    * This program is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU General Public License as published by the
7    * Free Software Foundation; either version 2 of the License, or (at your
8    * option) any later version.
9    *
10   * This program is distributed in the hope that it will be useful, but
11   * WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13   * General Public License for more details.
14   *
15   * You should have received a copy of the GNU General Public License along
16   * with this program; if not, write to the Free Software Foundation, Inc.,
17   * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
18   */
19  
20  package triptracker.client.gps.core;
21  
22  import static triptracker.client.gps.core.NMEATalkerType.*;
23  
24  public enum NMEATalkerID {
25  	/* Standard talker IDs */
26  	AG ("Autopilot, General", AUTOPILOT),
27  	AP ("Autopilot, Magnetic", AUTOPILOT),
28  	CD ("Digital Selective Calling (DSC)", COMMUNICATIONS),
29  	CS ("Satellite", COMMUNICATIONS),
30  	CT ("Radio-Telephone (MF/HF)", COMMUNICATIONS),
31  	CV ("Radio-Telephone (VHF)", COMMUNICATIONS),
32  	CX ("Scanning Receiver", COMMUNICATIONS),
33  	DE ("DECCA Navigation", OTHER),
34  	DF ("Direction Finder", OTHER),
35  	EC ("Electronic Chart Display & Information System (ECDIS)", OTHER),
36  	EP ("Emergency Position Indicating Beacon (EPIRB)", OTHER),
37  	ER ("Engineroom Monitoring Systems", OTHER),
38  	GP ("Global Positioning System (GPS)", OTHER),
39  	HC ("Compass, Magnetic", HEADING_SENSORS),
40  	HE ("Gyro, North Seeking", HEADING_SENSORS),
41  	HN ("Gyro, Non-North Seeking", HEADING_SENSORS),
42  	II ("Integrated Instrumentation", OTHER),
43  	IN ("Integrated Navigation", OTHER),
44  	LA ("Loran-A", LORAN),
45  	LC ("Loran-C", LORAN),
46  	OM ("OMEGA Navigation System", OTHER),
47  	P  ("Proprietary Code", PROPRIETARY),
48  	RA ("Radar and/or ARPA", OTHER),
49  	SD ("Sounder, depth", OTHER),
50  	SS ("Sounder, scanning", OTHER),
51  	TI ("Turn Rate Indicator", OTHER),
52  	TR ("TRANSIT Navigation System", OTHER),
53  	VD ("Doppler, other/general", VELOCITY_SENSORS),
54  	VM ("Speed Log, Water, Magnetic", VELOCITY_SENSORS),
55  	VW ("Speed Log, Water, Mechanical", VELOCITY_SENSORS),
56  	YX ("Transducer", TRANSDUCER),
57  	ZA ("Atomic Clock", TIMEKEEPERS),
58  	ZC ("Chronometer", TIMEKEEPERS),
59  	ZQ ("Quartz", TIMEKEEPERS),
60  	ZV ("Radio Update, WWV or WWVH", TIMEKEEPERS),
61  	WI ("Weather Instruments", OTHER);
62      
63      final String description;
64      final NMEATalkerType type;
65      
66      NMEATalkerID(String description, NMEATalkerType type) {
67      	this.description = description;
68      	this.type = type;
69      }
70      
71      public String getDescription() {
72      	return description;
73      }
74      
75      public NMEATalkerType getType() {
76      	return type;
77      }
78  }