Skip to content

Package: KuraPosition

KuraPosition

nameinstructionbranchcomplexitylinemethod
KuraPosition()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getAltitude()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getHeading()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getLatitude()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getLongitude()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getPrecision()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getSatellites()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getSpeed()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getStatus()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getTimestamp()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
setAltitude(Double)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setHeading(Double)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setLatitude(Double)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setLongitude(Double)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setPrecision(Double)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setSatellites(Integer)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setSpeed(Double)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setStatus(Integer)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setTimestamp(Date)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2016, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.service.device.call.message.kura;
14:
15: import org.eclipse.kapua.service.device.call.message.DevicePosition;
16:
17: import javax.xml.bind.annotation.XmlElement;
18: import java.util.Date;
19:
20: /**
21: * {@link DevicePosition} {@link org.eclipse.kapua.service.device.call.kura.Kura} implementation.
22: *
23: * @since 1.0.0
24: */
25: public class KuraPosition implements DevicePosition {
26:
27: /**
28: * Longitude of this position in degrees.
29: *
30: * @since 1.0.0
31: */
32: @XmlElement(name = "longitude")
33: private Double longitude;
34:
35: /**
36: * Latitude of this position in degrees.
37: *
38: * @since 1.0.0
39: */
40: @XmlElement(name = "latitude")
41: private Double latitude;
42:
43: /**
44: * Altitude of the position in meters.
45: *
46: * @since 1.0.0
47: */
48: @XmlElement(name = "altitude")
49: private Double altitude;
50:
51: /**
52: * Dilution of the precision (DOP) of the current GPS fix.
53: *
54: * @since 1.0.0
55: */
56: @XmlElement(name = "precision")
57: private Double precision;
58:
59: /**
60: * Heading (direction) of the position in degrees.
61: *
62: * @since 1.0.0
63: */
64: @XmlElement(name = "heading")
65: private Double heading;
66:
67: /**
68: * Speed for this position in meter/sec.
69: *
70: * @since 1.0.0
71: */
72: @XmlElement(name = "speed")
73: private Double speed;
74:
75: /**
76: * Timestamp extracted from the GPS system.
77: *
78: * @since 1.0.0
79: */
80: @XmlElement(name = "timestamp")
81: private Date timestamp;
82:
83: /**
84: * Number of satellites seen by the systems
85: *
86: * @since 1.0.0
87: */
88: @XmlElement(name = "satellites")
89: private Integer satellites;
90:
91: /**
92: * Status of GPS system: 1 = no GPS response, 2 = error in response, 4 = valid.
93: *
94: * @since 1.0.0
95: */
96: @XmlElement(name = "status")
97: private Integer status;
98:
99: /**
100: * Constructor.
101: *
102: * @since 1.0.0
103: */
104: public KuraPosition() {
105: super();
106: }
107:
108: @Override
109: public Double getLongitude() {
110: return longitude;
111: }
112:
113: @Override
114: public void setLongitude(Double longitude) {
115: this.longitude = longitude;
116: }
117:
118: @Override
119: public Double getLatitude() {
120: return latitude;
121: }
122:
123: @Override
124: public void setLatitude(Double latitude) {
125: this.latitude = latitude;
126: }
127:
128: @Override
129: public Double getAltitude() {
130: return altitude;
131: }
132:
133: @Override
134: public void setAltitude(Double altitude) {
135: this.altitude = altitude;
136: }
137:
138: @Override
139: public Double getPrecision() {
140: return precision;
141: }
142:
143: @Override
144: public void setPrecision(Double precision) {
145: this.precision = precision;
146: }
147:
148: @Override
149: public Double getHeading() {
150: return heading;
151: }
152:
153: @Override
154: public void setHeading(Double heading) {
155: this.heading = heading;
156: }
157:
158: @Override
159: public Double getSpeed() {
160: return speed;
161: }
162:
163: @Override
164: public void setSpeed(Double speed) {
165: this.speed = speed;
166: }
167:
168: @Override
169: public Date getTimestamp() {
170: return timestamp;
171: }
172:
173: @Override
174: public void setTimestamp(Date timestamp) {
175: this.timestamp = timestamp;
176: }
177:
178: @Override
179: public Integer getSatellites() {
180: return satellites;
181: }
182:
183: @Override
184: public void setSatellites(Integer satellites) {
185: this.satellites = satellites;
186: }
187:
188: @Override
189: public Integer getStatus() {
190: return status;
191: }
192:
193: @Override
194: public void setStatus(Integer status) {
195: this.status = status;
196: }
197:
198: }