|
@@ -1,6 +1,5 @@
|
1
|
1
|
package org.insa.graph;
|
2
|
2
|
|
3
|
|
-import java.util.ArrayList;
|
4
|
3
|
import java.util.Collections;
|
5
|
4
|
import java.util.List;
|
6
|
5
|
|
|
@@ -21,7 +20,7 @@ class ArcForward extends Arc {
|
21
|
20
|
private final RoadInformation info;
|
22
|
21
|
|
23
|
22
|
// Segments.
|
24
|
|
- private final ArrayList<Point> points;
|
|
23
|
+ private final List<Point> points;
|
25
|
24
|
|
26
|
25
|
/**
|
27
|
26
|
* Create a new ArcForward with the given attributes.
|
|
@@ -33,7 +32,7 @@ class ArcForward extends Arc {
|
33
|
32
|
* @param points Points representing this arc.
|
34
|
33
|
*/
|
35
|
34
|
protected ArcForward(Node origin, Node dest, float length, RoadInformation roadInformation,
|
36
|
|
- ArrayList<Point> points) {
|
|
35
|
+ List<Point> points) {
|
37
|
36
|
this.origin = origin;
|
38
|
37
|
this.destination = dest;
|
39
|
38
|
this.length = length;
|
|
@@ -52,7 +51,7 @@ class ArcForward extends Arc {
|
52
|
51
|
}
|
53
|
52
|
|
54
|
53
|
@Override
|
55
|
|
- public double getLength() {
|
|
54
|
+ public float getLength() {
|
56
|
55
|
return length;
|
57
|
56
|
}
|
58
|
57
|
|