mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-25 06:58:39 +00:00
added first small steps towards a SwissTiming adapter
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>com.sap.sailing.domain.swisstimingadapter</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@@ -0,0 +1,8 @@
|
||||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: Swisstimingadapter
|
||||
Bundle-SymbolicName: com.sap.sailing.domain.swisstimingadapter
|
||||
Bundle-Version: 1.0.0.qualifier
|
||||
Bundle-Vendor: SAP
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
|
||||
Require-Bundle: com.sap.sailing.domain
|
||||
@@ -0,0 +1,4 @@
|
||||
source.. = src/
|
||||
output.. = bin/
|
||||
bin.includes = META-INF/,\
|
||||
.
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
package com.sap.sailing.domain.swisstimingadapter;
|
||||
|
||||
import com.sap.sailing.domain.base.Position;
|
||||
import com.sap.sailing.domain.base.Speed;
|
||||
import com.sap.sailing.domain.base.TimePoint;
|
||||
|
||||
public class GPSFix {
|
||||
private final String raceID;
|
||||
private final int packetID;
|
||||
private final TimePoint timestamp;
|
||||
private final short gpsID;
|
||||
private final Position position;
|
||||
private final Speed speed;
|
||||
private final byte numberOfSatellites;
|
||||
private final byte batteryPercent;
|
||||
|
||||
public GPSFix(String raceID, int packetID, TimePoint timestamp, short gpsID, Position position, Speed speed,
|
||||
byte numberOfSatellites, byte batteryPercent) {
|
||||
super();
|
||||
this.raceID = raceID;
|
||||
this.packetID = packetID;
|
||||
this.timestamp = timestamp;
|
||||
this.gpsID = gpsID;
|
||||
this.position = position;
|
||||
this.speed = speed;
|
||||
this.numberOfSatellites = numberOfSatellites;
|
||||
this.batteryPercent = batteryPercent;
|
||||
}
|
||||
|
||||
public String getRaceID() {
|
||||
return raceID;
|
||||
}
|
||||
|
||||
public int getPacketID() {
|
||||
return packetID;
|
||||
}
|
||||
|
||||
public TimePoint getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
public short getGpsID() {
|
||||
return gpsID;
|
||||
}
|
||||
|
||||
public Position getPosition() {
|
||||
return position;
|
||||
}
|
||||
|
||||
public Speed getSpeed() {
|
||||
return speed;
|
||||
}
|
||||
|
||||
public byte getNumberOfSatellites() {
|
||||
return numberOfSatellites;
|
||||
}
|
||||
|
||||
public byte getBatteryPercent() {
|
||||
return batteryPercent;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user