Skip navigation links

Oracle® Spatial Java API Reference
11g Release 2 (11.2)
E11829-02


oracle.spatial.network.lod
Class TspAnalysisInfo

java.lang.Object
  extended by oracle.spatial.network.lod.LODAnalysisInfo
      extended by oracle.spatial.network.lod.TspAnalysisInfo


public class TspAnalysisInfo
extends LODAnalysisInfo

This class contains the TSP points in order, besides other info in LODAnalysisInfo.

Since:
Oracle Database 11g Release 2 (11.2)

Constructor Summary
TspAnalysisInfo(LinkCostCalculator[] lccs, NodeCostCalculator[] nccs, int direction, int numTspPoints)
          Creates an TspAnalysisInfo object.

 

Method Summary
 double[] getTspCosts(int pointIndex)
          Returns the costs to reach the input tsp point.
 int[] getTspOrder()
          Returns TSP points in order.
 void setTspCosts(int pointIndex, double[] costs)
          Sets the costs to reach the input tsp point.
 void setTspOrder(int[] tspOrder)
          Sets TSP points in order

 

Methods inherited from class oracle.spatial.network.lod.LODAnalysisInfo
getCurrentCost, getCurrentCosts, getCurrentDepth, getCurrentLink, getCurrentNode, getCurrentUserObjects, getDirection, getEndNode, getEndPoint, getNextCost, getNextCosts, getNextDepth, getNextLink, getNextNode, getNextUserObject, getStartNode, getStartPoint, setDirection, setNextUserObject

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

TspAnalysisInfo

public TspAnalysisInfo(LinkCostCalculator[] lccs,
                       NodeCostCalculator[] nccs,
                       int direction,
                       int numTspPoints)
Creates an TspAnalysisInfo object.
Parameters:
lccs - link cost calculators
nccs - node cost calculators

Method Detail

getTspOrder

public int[] getTspOrder()
Returns TSP points in order. Each element in the returned array is the first member of a TSP point candidate array in the TSP analysis.
Returns:

setTspOrder

public void setTspOrder(int[] tspOrder)
Sets TSP points in order
Parameters:
tspOrder - TSP points in order. Each element in the input array is the first member of a TSP point candidate array in the TSP analysis.

getTspCosts

public double[] getTspCosts(int pointIndex)
Returns the costs to reach the input tsp point.

setTspCosts

public void setTspCosts(int pointIndex,
                        double[] costs)
Sets the costs to reach the input tsp point.

Skip navigation links

Oracle® Spatial Java API Reference
11g Release 2 (11.2)
E11829-02


Copyright © 2007, 2011, Oracle and/or its affiliates. All Rights Reserved.