1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package triptracker.client.gps.core;
21
22 import static triptracker.client.gps.core.NMEATalkerType.*;
23
24 public enum NMEATalkerID {
25
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 }