mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-30 15:57:11 +00:00
upgraded TracAPI from 3.1.6 to 3.2.0
Change-Id: Ie6d6adf75aed879303b34873719fd4e58c2f47ac
This commit is contained in:
1 parent
434d3eec00
commit
b6f3f31fa0
7 files changed
+92
-31
No files matched your search
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: TracTrac Client module
|
||||
Bundle-SymbolicName: com.tractrac.clientmodule
|
||||
Bundle-Version: 3.1.6
|
||||
Bundle-Version: 3.2.0
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||
Bundle-ClassPath: .,
|
||||
lib/TracAPI.jar
|
||||
|
||||
@@ -16,6 +16,85 @@ It contains also some files:
|
||||
- test.sh -> script that compiles the code in the src folder, creates the test.jar library and execute the code of the example.
|
||||
- Manifest.txt -> manifest used to create the test.jar file
|
||||
|
||||
********************************************
|
||||
************* TracAPI 3.2.0 ****************
|
||||
********************************************
|
||||
This is a final version. New functionality added:
|
||||
|
||||
Release date: 05/06/2016
|
||||
Build number: 12293
|
||||
|
||||
1) New functionality:
|
||||
|
||||
- IRace adds the new property, status, returning a value of the enum RaceStatusType.
|
||||
- IRace property visibility has changed to return a value of the enum RaceVisibilityType.
|
||||
- IRaceCompetitor adds a new property: status of type RaceCompetitorStatusType.
|
||||
- Competitor updates during a race will be propagated to all subscriptors.
|
||||
|
||||
********************************************
|
||||
************* TracAPI 3.1.6 ****************
|
||||
********************************************
|
||||
This is a final version. Only fixes bugs in the implementation
|
||||
|
||||
Release date: 22/02/2016
|
||||
Build number: 11976
|
||||
|
||||
1) Bugs
|
||||
|
||||
- The bug of the previous release (3.1.2) was not fixed.
|
||||
|
||||
********************************************
|
||||
************* TracAPI 3.1.5 ****************
|
||||
********************************************
|
||||
This is a final version. Only fixes bugs in the implementation
|
||||
|
||||
Release date: 17/02/2016
|
||||
Build number: 11948
|
||||
|
||||
1) Bugs
|
||||
|
||||
- The bug of the previous release (3.1.2) was not fixed.
|
||||
|
||||
********************************************
|
||||
************* TracAPI 3.1.4 ****************
|
||||
********************************************
|
||||
This is a final version. Only fixes bugs in the implementation
|
||||
|
||||
Release date: 15/02/2016
|
||||
Build number: 11938
|
||||
|
||||
1) Bugs
|
||||
|
||||
- An infinity loop has been detected in the thread that sends the application
|
||||
messages (Repored by Axel Uhl, 12/02/2016)
|
||||
|
||||
********************************************
|
||||
************* TracAPI 3.1.3 ****************
|
||||
********************************************
|
||||
This is a final version. Only fixes bugs in the implementation
|
||||
|
||||
Release date: 25/01/2016
|
||||
Build number: 11888
|
||||
|
||||
1) Bugs
|
||||
|
||||
- The bug of the previous release (3.1.2) was not fixed.
|
||||
|
||||
********************************************
|
||||
************* TracAPI 3.1.2 ****************
|
||||
********************************************
|
||||
This is a final version. Only fixes bugs in the implementation
|
||||
|
||||
Release date: 21/01/2016
|
||||
Build number: 11864
|
||||
|
||||
1) Bugs
|
||||
|
||||
- The ISubscriber.stop() method never finishes due to a deadlock (it happens sometimes).
|
||||
There is a deadlock between one of the internal threads responsible to update the progress
|
||||
and the thread that calls the stop method. The release 3.1.1 fixed a part of the bug but
|
||||
it continues happening due to a new deadlock (Reported by Axel Uhl, 20/01/2016)
|
||||
|
||||
********************************************
|
||||
************* TracAPI 3.1.1 ****************
|
||||
********************************************
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -8,6 +8,6 @@
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>com.tractrac.clientmodule</artifactId>
|
||||
<version>3.1.6</version>
|
||||
<version>3.2.0</version>
|
||||
<packaging>eclipse-plugin</packaging>
|
||||
</project>
|
||||
+9
-27
@@ -40,10 +40,6 @@ public class EventListener implements IEventMessageListener,
|
||||
IPositionSnappedListener, IConnectionStatusListener, IControlPointPositionListener,
|
||||
IControlPassingsListener, IRaceStartStopTimesChangeListener,
|
||||
IControlRouteChangeListener {
|
||||
|
||||
long controlPositionsCount = 0;
|
||||
long competitorPositionsCount = 0;
|
||||
long controlPassingsCount = 0;
|
||||
|
||||
private static void show(Object obj) {
|
||||
System.out.println(Thread.currentThread().getName() + ": " + obj);
|
||||
@@ -61,56 +57,45 @@ public class EventListener implements IEventMessageListener,
|
||||
|
||||
@Override
|
||||
public void gotRouteChange(IControlRoute controlRoute, long timeStamp) {
|
||||
//show("New route at " + timeStamp + ": " + controlRoute.toString());
|
||||
show("New route at " + timeStamp + ": " + controlRoute.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void gotControlPassings(IRaceCompetitor raceCompetitor,
|
||||
IControlPassings markPassings) {
|
||||
//show("New markpassings " + markPassings + " for the competitor " + raceCompetitor.getCompetitor().toString());
|
||||
controlPassingsCount++;
|
||||
show("New markpassings " + markPassings + " for the competitor " + raceCompetitor.getCompetitor().toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void gotControlPointPosition(IControl control, IPosition position, int markNumber) {
|
||||
//show("New position " + position + " for the mark " + control + ", " + markNumber);
|
||||
controlPositionsCount++;
|
||||
show("New position " + position + " for the mark " + control + ", " + markNumber);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void gotPositionSnapped(IRaceCompetitor raceCompetitor,
|
||||
IPositionSnapped positionSnapped) {
|
||||
show("New position " + positionSnapped + " for the competitor " + raceCompetitor.getCompetitor().toString());
|
||||
competitorPositionsCount++;
|
||||
show("New position " + positionSnapped + " for the competitor " + raceCompetitor.getCompetitor().toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void gotPositionOffset(IRaceCompetitor raceCompetitor,
|
||||
IPositionOffset position) {
|
||||
show("New position " + position + " for the competitor " + raceCompetitor.getCompetitor().toString());
|
||||
competitorPositionsCount++;
|
||||
show("New position " + position + " for the competitor " + raceCompetitor.getCompetitor().toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void gotPosition(IRaceCompetitor raceCompetitor, IPosition position) {
|
||||
//show("New position " + position + " for the competitor " + raceCompetitor.getCompetitor().toString());
|
||||
competitorPositionsCount++;
|
||||
show("New position " + position + " for the competitor " + raceCompetitor.getCompetitor().toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void gotRaceStartStopTime(IRace race, IStartStopData startStopData) {
|
||||
//show("New race start/stop times " + startStopData.toString());
|
||||
show("New race start/stop times " + startStopData.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void gotTrackingStartStopTime(IRace race, IStartStopData startStopData) {
|
||||
//show("New tracking race start/stop times " + startStopData.toString());
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
} catch (InterruptedException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
show("New tracking race start/stop times " + startStopData.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -120,10 +105,7 @@ public class EventListener implements IEventMessageListener,
|
||||
|
||||
@Override
|
||||
public void stopped(Object object) {
|
||||
show("Stopping the connection with " + object.toString());
|
||||
System.out.println("Number of control positions: " + controlPositionsCount);
|
||||
System.out.println("Number of competitor positions: " + competitorPositionsCount);
|
||||
System.out.println("Number of control passings: " + controlPassingsCount);
|
||||
show("Stopping the connection with " + object.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -59,7 +59,7 @@ public class Main {
|
||||
raceSubscriber.subscribeRaceTimesChanges(eventListener);
|
||||
raceSubscriber.subscribeRouteChanges(eventListener);
|
||||
raceSubscriber.start();
|
||||
//eventSubscriber.start();
|
||||
eventSubscriber.start();
|
||||
|
||||
// Go ahead with GUI or other stuff in main thread
|
||||
System.out.println("Press key to cancel live data stream");
|
||||
@@ -67,7 +67,7 @@ public class Main {
|
||||
System.out.println("Cancelling data stream");
|
||||
|
||||
// Stop data streams
|
||||
//eventSubscriber.stop();
|
||||
eventSubscriber.stop();
|
||||
raceSubscriber.stop();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user