mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-13 22:15:26 +00:00
more/improved toString() implementations
Change-Id: I4f19c019dd74bf95e496b21c078cb2a0cedb6593
This commit is contained in:
1 parent
a18550f5c9
commit
571995b21b
2 files changed
+6
-1
No files matched your search
+5
@@ -78,6 +78,11 @@ public class DijkstraShortestPathFinderImpl<T extends ElementWithQuality> implem
|
||||
public double getPathQuality() {
|
||||
return qualityOfPathToNode.get(endNode);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Shortest path with "+Util.size(getShortestPath())+" elements, quality "+getPathQuality();
|
||||
}
|
||||
} : null;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -191,7 +191,7 @@ public class WindCourseRange {
|
||||
if (b>360) {
|
||||
b -= 360;
|
||||
}
|
||||
return "Wind from "+(a==b?a:(a+"-"+b))+"°";
|
||||
return "Wind from "+(angleTowardStarboard==0?a:(a+"-"+b))+"° ("+angleTowardStarboard+"°)";
|
||||
}
|
||||
|
||||
public enum CombinationModeOnViolation {
|
||||
|
||||
Reference in new issue
Block a user