public class TspAnalysisInfo extends LODAnalysisInfo
Constructor and Description |
---|
TspAnalysisInfo(LinkCostCalculator[] lccs, NodeCostCalculator[] nccs, int direction, int numTspPoints)
Creates an TspAnalysisInfo object.
|
Modifier and Type | Method and Description |
---|---|
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
|
getCurrentCost, getCurrentCosts, getCurrentDepth, getCurrentLink, getCurrentNode, getCurrentUserObjects, getDirection, getEndNode, getEndPoint, getEndPoints, getExpandedNode, getNextCost, getNextCosts, getNextDepth, getNextLink, getNextNode, getNextUserObject, getStartNode, getStartPoint, getStartPoints, setDirection, setNextUserObject
public TspAnalysisInfo(LinkCostCalculator[] lccs, NodeCostCalculator[] nccs, int direction, int numTspPoints)
lccs
- link cost calculatorsnccs
- node cost calculatorspublic int[] getTspOrder()
public void setTspOrder(int[] tspOrder)
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.public double[] getTspCosts(int pointIndex)
public void setTspCosts(int pointIndex, double[] costs)