Revision 5085

View differences:

trunk/extensions/extGPS/src/org/gvsig/gps/parser/NMEA/NMEASentence.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-05-08 11:54:50  jaume
47
* small architecture aspects
48
*
49
* Revision 1.1  2006/04/03 16:10:27  jaume
47 50
* *** empty log message ***
48 51
*
49 52
* Revision 1.1  2006/03/31 09:55:34  jaume
......
77 80
	private byte checksum;
78 81
	protected long time;
79 82
	
80
	public void setData(String sentence) throws IllegalSentenceException {
83
	public final void setData(String sentence) throws IllegalSentenceException {
81 84
		int ind = sentence.indexOf('*');
82 85
		checksum = Byte.decode("0x"+sentence.substring(ind+1, ind+3)).byteValue();
83 86
		this.data = sentence.substring(0, ind).split(",");
......
90 93
	 * The first field (index=0) is the sentence name.
91 94
	 * @return The amount of fields
92 95
	 */
93
	public int getFieldCount() {
96
	public final int getFieldCount() {
94 97
		return data.length;
95 98
	}
96 99
	
......
98 101
	 * The name of the NMEA sentence.
99 102
	 * @return A string containing the name.
100 103
	 */
101
	public String getName() {
104
	public final String getName() {
102 105
		return data[0];
103 106
	}
104 107
	
......
109 112
	 * @return the difference, measured in milliseconds, between the time when it
110 113
	 * was set and midnight, January 1, 1970 UTC.
111 114
	 */
112
	public long getTime() {
115
	public final long getTime() {
113 116
		return time;
114 117
	}
115 118
	
......
118 121
	 * @param iField
119 122
	 * @return String containing the iField-th field data
120 123
	 */
121
	public String getFieldValue(int iField) {
124
	public final String getFieldValue(int iField) {
122 125
		return data[iField];
123 126
	}
124 127
	
......
127 130
	 * System.currentTimeMillis() call.
128 131
	 * @param time, a long containing the amount of milliseconds.
129 132
	 */
130
	public void setTime(long time) {
133
	public final void setTime(long time) {
131 134
		this.time = time;
132 135
	}
133 136
	

Also available in: Unified diff