mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-13 22:15:26 +00:00
continue to work on detailtype
This commit is contained in:
1 parent
4ed903779a
commit
31ea9d6f0a
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -14,7 +14,7 @@ public class DetailTypeFormatter {
|
||||
|
||||
public static String format(DetailType detailType) {
|
||||
switch (detailType) {
|
||||
case TACKTYPE_LONGTACK_SHORTTACK:
|
||||
case LEG_TACKTYPE_LONGTACK_SHORTTACK:
|
||||
return stringMessages.tacktype();
|
||||
case LEG_DISTANCE_TRAVELED:
|
||||
return stringMessages.distanceInMeters();
|
||||
|
||||
+1
-1
@@ -2578,7 +2578,7 @@ public class SailingServiceImpl extends ResultCachingProxiedRemoteServiceServlet
|
||||
try {
|
||||
TrackedLegOfCompetitor trackedLeg = trackedRace.getTrackedLeg(competitor, timePoint);
|
||||
switch (dataType) {
|
||||
case TACKTYPE_LONGTACK_SHORTTACK:
|
||||
case LEG_TACKTYPE_LONGTACK_SHORTTACK:
|
||||
if (trackedLeg != null) {
|
||||
final TackType tackType = trackedLeg.getTackType(timePoint);
|
||||
result = (tackType == null) ? null : ((tackType==TackType.LONGTACK) ? 1.0 : 0.0);
|
||||
|
||||
Reference in new issue
Block a user