Package oracle.spatial.network.lod
Class TspPath
- java.lang.Object
-
- oracle.spatial.network.lod.TspPath
-
public class TspPath extends java.lang.Object
A TspPath consists of an array of LogicalSubPath and the order of the points on the TSP tour.- Since:
- 11gR2
-
-
Constructor Summary
Constructors Constructor Description TspPath(LogicalSubPath[] paths, int[] tspOrder)
Constructs a TspPath instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
getCosts()
Returns the total cost of the TSP tour.LogicalSubPath[]
getPaths()
Returns the logical sub-path for the TSP tour.int[]
getTspOrder()
Returns the index of the points in visited order.
-
-
-
Constructor Detail
-
TspPath
public TspPath(LogicalSubPath[] paths, int[] tspOrder)
Constructs a TspPath instance.- Parameters:
paths
- paths between two consecutive points on the tsp path.tspOrder
- order of the points represented by the index of the points in the original input array to the tsp analysis function.
-
-
Method Detail
-
getPaths
public LogicalSubPath[] getPaths()
Returns the logical sub-path for the TSP tour.- Returns:
- logical path
-
getTspOrder
public int[] getTspOrder()
Returns the index of the points in visited order.- Returns:
-
getCosts
public double[] getCosts()
Returns the total cost of the TSP tour.- Returns:
-
-