public class TspPathFeature
extends java.lang.Object
Constructor and Description |
---|
TspPathFeature(PathFeature[] paths, int[] tspOrder)
Constructs a TspPathFeature instance.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getCosts()
Returns the total cost of the TSP tour.
|
PathFeature[] |
getPaths()
Returns the individual paths on the TSP tour.
|
int[] |
getTspOrder()
Returns the index of the features in visited order.
|
java.lang.String |
toString() |
public TspPathFeature(PathFeature[] paths, int[] tspOrder)
paths
- paths between two adjacent featurs 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.public PathFeature[] getPaths()
public int[] getTspOrder()
public double[] getCosts()
public java.lang.String toString()
toString
in class java.lang.Object