added first small steps towards a SwissTiming adapter

This commit is contained in:
Axel Uhl
2011-08-25 16:56:51 +02:00
parent 79e873b980
commit a4890b9c39
5 changed files with 109 additions and 0 deletions
@@ -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
View File
@@ -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/,\
.
@@ -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;
}
}