Class TspPathFeature


  • public class TspPathFeature
    extends java.lang.Object
    A TspPathFeature object contains information about the tsp order and a sequence of path features from the first point until the last point.
    Since:
    release specific (what release of product did this appear in)
    • Constructor Summary

      Constructors 
      Constructor Description
      TspPathFeature​(PathFeature[] paths, int[] tspOrder)
      Constructs a TspPathFeature instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TspPathFeature

        public TspPathFeature​(PathFeature[] paths,
                              int[] tspOrder)
        Constructs a TspPathFeature instance.
        Parameters:
        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.
    • Method Detail

      • getPaths

        public PathFeature[] getPaths()
        Returns the individual paths on the TSP tour.
        Returns:
        logical path
      • getTspOrder

        public int[] getTspOrder()
        Returns the index of the features in visited order.
        Returns:
      • getCosts

        public double[] getCosts()
        Returns the total cost of the TSP tour.
        Returns:
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object