Switch to static methods for creating paths from nodes.
Šī revīzija ir iekļauta:
vecāks
26180b8d4d
revīzija
7640fa34c7
1 mainīti faili ar 1 papildinājumiem un 2 dzēšanām
|
@ -7,7 +7,6 @@ import java.util.ArrayList;
|
|||
import org.insa.graph.Graph;
|
||||
import org.insa.graph.Node;
|
||||
import org.insa.graph.Path;
|
||||
import org.insa.graph.Path.CreationMode;
|
||||
|
||||
public class BinaryPathReader extends BinaryReader implements PathReader {
|
||||
|
||||
|
@ -46,7 +45,7 @@ public class BinaryPathReader extends BinaryReader implements PathReader {
|
|||
nodes.add(readNode(graph));
|
||||
}
|
||||
|
||||
return new Path(graph, nodes, CreationMode.SHORTEST_TIME);
|
||||
return Path.createFastestPathFromNodes(graph, nodes);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Notiek ielāde…
Atsaukties uz šo jaunā problēmā