mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-06 12:23:55 +00:00
a few renames and improved Javadocs
This commit is contained in:
1 parent
aa1a70dfe5
commit
3f9a94614a
4 files changed
+45
-10
No files matched your search
+41
-6
@@ -7,13 +7,18 @@ import com.sap.sailing.domain.swisstimingreplayadapter.impl.SwissTimingReplayPar
|
||||
import com.sap.sailing.domain.swisstimingreplayadapter.impl.Weather;
|
||||
|
||||
/**
|
||||
* Implementations are passed to {@link SwissTimingReplayParserImpl#loadRaceData(String, SwissTimingReplayListener)} for getting notified of about content parsed from SwissTiming's binary replay file format.
|
||||
* Implementations are passed to {@link SwissTimingReplayParserImpl#loadRaceData(String, SwissTimingReplayListener)} for
|
||||
* getting notified of about content parsed from SwissTiming's binary replay file format.
|
||||
* <p>
|
||||
*
|
||||
* The protocol is:
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* The protocol is:
|
||||
*
|
||||
* 1 x keyFrameIndex
|
||||
* n x keyFrameIndexPosition
|
||||
* 1 x eot
|
||||
* 1 x frameMetaData
|
||||
* n x [
|
||||
* 1 x referenceTimestamp
|
||||
* 1 x referenceLocation
|
||||
@@ -30,10 +35,16 @@ import com.sap.sailing.domain.swisstimingreplayadapter.impl.Weather;
|
||||
* 1 x eot
|
||||
*
|
||||
* ]
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* For each tracked object on the course, a "competitor" message is contained in each frame. The <code>sailNumber</code>
|
||||
* parameter corresponds to the {@link #mark(MarkType, String, byte, String, String, short, short)} message's
|
||||
* <code>id1/id2</code> parameter if a tracked object is used as part of a mark. The
|
||||
* {@link #mark(MarkType, String, byte, String, String, short, short)} messages define the course layout by
|
||||
* providing the marks in the order they must be passed.
|
||||
*
|
||||
* @author D047974 - Jens Rommel
|
||||
*
|
||||
*
|
||||
*/
|
||||
public interface SwissTimingReplayListener {
|
||||
|
||||
@@ -43,6 +54,10 @@ public interface SwissTimingReplayListener {
|
||||
|
||||
void referenceTimestamp(long referenceTimestamp);
|
||||
|
||||
/**
|
||||
* @param latitude latitude in degrees * 10000000
|
||||
* @param longitude longitude in degrees * 10000000
|
||||
*/
|
||||
void referenceLocation(int latitude, int longitude);
|
||||
|
||||
void rsc_cid(String text);
|
||||
@@ -56,7 +71,27 @@ public interface SwissTimingReplayListener {
|
||||
void competitor(int hashValue, String nation, String sailNumber, String name, CompetitorStatus competitorStatus, BoatType boatType,
|
||||
short cRank_Bracket, short cnPoints_x10_Bracket, short ctPoints_x10_Winner);
|
||||
|
||||
void mark(MarkType markType, String identifier, byte index, String id1, String id2, short windSpeed_Knots, short windDirection);
|
||||
/**
|
||||
* @param name
|
||||
* a symbolic name, such as "Start" or "Finish"
|
||||
* @param index
|
||||
* the mark's ordinal number in the course's mark sequence, starting with 0
|
||||
* @param id1
|
||||
* the "competitor" ID for the first mark's part / buoy, corresponds with <code>sailNumberOrID</code> of
|
||||
* the {@link #competitor(int, String, String, String, CompetitorStatus, BoatType, short, short, short)}
|
||||
* messages
|
||||
* @param id2
|
||||
* <code>null</code>, if the mark is a single buoy, otherwise the "competitor" ID, corresponds with
|
||||
* <code>sailNumberOrID</code> of the
|
||||
* {@link #competitor(int, String, String, String, CompetitorStatus, BoatType, short, short, short)}
|
||||
* messages
|
||||
* @param windSpeedInKnots
|
||||
* the true wind speed in knots at the mark, or -1 if no wind is measured at this mark
|
||||
* @param trueWindDirectionInDegrees
|
||||
* the true wind direction in degrees at the mark, or -1 if no wind is measured at this mark
|
||||
*/
|
||||
void mark(MarkType markType, String name, byte index, String id1, String id2, short windSpeedInKnots,
|
||||
short trueWindDirectionInDegrees);
|
||||
|
||||
void trackersCount(short trackersCount);
|
||||
|
||||
|
||||
Reference in new issue
Block a user