Merge new-length.

This commit is contained in:
Holt59
2018-03-09 21:15:03 +01:00
9 changed files with 50 additions and 41 deletions

View File

@@ -15,7 +15,7 @@ class ArcForward implements Arc {
private final Node origin, destination;
// Length of the road (in meters).
private final int length;
private final float length;
// Road information.
private final RoadInformation info;
@@ -32,7 +32,7 @@ class ArcForward implements Arc {
* @param roadInformation Road information for this arc.
* @param points Points representing this arc.
*/
protected ArcForward(Node origin, Node dest, int length, RoadInformation roadInformation,
protected ArcForward(Node origin, Node dest, float length, RoadInformation roadInformation,
ArrayList<Point> points) {
this.origin = origin;
this.destination = dest;
@@ -52,7 +52,7 @@ class ArcForward implements Arc {
}
@Override
public int getLength() {
public float getLength() {
return length;
}