mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-04 03:13:49 +00:00
added interface method for getMarkPassingTimesInMillisecondsSinceStart
This commit is contained in:
1 parent
ba3fd9ea94
commit
df0ae8df87
2 files changed
+11
No files matched your search
+10
@@ -32,4 +32,14 @@ public interface SailMasterConnector {
|
||||
double getAverageBoatSpeedInMetersPerSecond(String raceID, String leg, String boatID) throws UnknownHostException, IOException;
|
||||
|
||||
double getDistanceBetweenBoatsInMeters(String raceID, String boatID1, String boatID2) throws UnknownHostException, IOException;
|
||||
|
||||
/**
|
||||
* Retrieves the mark passing times for a boat ID within a race specified by <code>raceID</code>.
|
||||
*
|
||||
* @return keys are the mark indices; values are the pairs telling the requested boat's rank at the key mark and the
|
||||
* number of milliseconds that passed between the race start and the point in time at which the boat with ID
|
||||
* <code>boatID</code> passed the mark.
|
||||
*/
|
||||
Map<Integer, Pair<Integer, Long>> getMarkPassingTimesInMillisecondsSinceStart(String raceID, String boatID)
|
||||
throws UnknownHostException, IOException;
|
||||
}
|
||||
+1
@@ -197,6 +197,7 @@ public class SailMasterConnectorImpl extends SailMasterTransceiver implements Sa
|
||||
return Double.valueOf(sections[4]);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<Integer, Pair<Integer, Long>> getMarkPassingTimesInMillisecondsSinceStart(String raceID, String boatID)
|
||||
throws UnknownHostException, IOException {
|
||||
SailMasterMessage response = sendRequestAndGetResponse("TMD?|"+raceID+"|"+boatID);
|
||||
|
||||
Reference in new issue
Block a user