more/improved toString() implementations

Change-Id: I4f19c019dd74bf95e496b21c078cb2a0cedb6593
This commit is contained in:
Axel Uhl committed 2019-07-15 23:47:11 +02:00
1 parent a18550f5c9
commit 571995b21b
2 files changed
+6 -1

No files matched your search

@@ -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;
}
@@ -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 {