public class DefaultPairwiseShortestPaths extends java.lang.Object implements PairwiseShortestPaths, XMLConfigurable
Constructor and Description |
---|
DefaultPairwiseShortestPaths(NetworkExplorer ne, LinkCostCalculator[] lccs, NodeCostCalculator[] nccs, ShortestPath spAlgorithm)
Deprecated.
|
DefaultPairwiseShortestPaths(ShortestPath spAlgorithm)
Construct a DefaultPairwiseShortestPaths instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getXMLSchema()
Returns the XML schema for the input parameter.
|
void |
init(org.w3c.dom.Element parameter)
Initializes the XML configurable object with the input parameter.
|
void |
setInitialAnalysisInfo(LODAnalysisInfo analysisInfo) |
void |
setNetworkAnalyst(NetworkAnalyst analyst)
This method allows caller to pass the network analyst object to this pairwise shortest paths implementation, so that the algorithm can call the analysis functions provided by the network analyst, or access the network explorer associated with the network analyst.
|
double[][] |
shortestPathCosts(PointOnNet[][] startPoints, PointOnNet[][] endPoints, LODNetworkConstraint constraint, Matrix<java.lang.Integer> pairwiseMatrix, int direction)
Returns the pair-wise shortest path cost between a set of candidate start points and end points.
|
Matrix<LogicalSubPath> |
shortestPaths(PointOnNet[][] startPoints, PointOnNet[][] endPoints, LODNetworkConstraint constraint, Matrix<java.lang.Integer> pairwiseMatrix, int direction)
Returns the pair-wise shortest paths between a set of candidate start points and end points.
|
Matrix<LogicalLightSubPath> |
shortestPathsLight(PointOnNet[][] startPoints, PointOnNet[][] endPoints, LODNetworkConstraint constraint, Matrix<java.lang.Integer> pairwiseMatrix, int direction)
Returns the pair-wise light weight shortest paths between a set of candidate start points and end points.
|
void |
shortestPathsLight(PointOnNet[][] startPoints, PointOnNet[][] endPoints, LODNetworkConstraint constraint, Matrix<java.lang.Integer> pairwiseMatrix, int direction, PairwisePathResultIO pathIO)
Computes the pair-wise light weight shortest paths between a set of candidate start points and end points, and outputs the light weight paths via PairwisePathResultIO.
|
public DefaultPairwiseShortestPaths(NetworkExplorer ne, LinkCostCalculator[] lccs, NodeCostCalculator[] nccs, ShortestPath spAlgorithm)
ne
-lccs
-nccs
-spAlgorithm
-public DefaultPairwiseShortestPaths(ShortestPath spAlgorithm)
spAlgorithm
-public void setInitialAnalysisInfo(LODAnalysisInfo analysisInfo)
public Matrix<LogicalSubPath> shortestPaths(PointOnNet[][] startPoints, PointOnNet[][] endPoints, LODNetworkConstraint constraint, Matrix<java.lang.Integer> pairwiseMatrix, int direction) throws LODNetworkException
PairwiseShortestPaths
shortestPaths
in interface PairwiseShortestPaths
startPoints
- array of start candidatesendPoints
- array of end candidatesconstraint
- network constraintpairwiseMatrix
- a matrix that specifies for which pairs the shortest paths need to be computed. If the matrix element for pair (i, j) is set to 0, then the shortest path from i to j does not need to be computed; otherwise it must be computed. If this parameter is set to null, then the shortest paths for all pairs must be computed.LODNetworkException
public Matrix<LogicalLightSubPath> shortestPathsLight(PointOnNet[][] startPoints, PointOnNet[][] endPoints, LODNetworkConstraint constraint, Matrix<java.lang.Integer> pairwiseMatrix, int direction) throws LODNetworkException
PairwiseShortestPaths
shortestPathsLight
in interface PairwiseShortestPaths
startPoints
- array of start candidatesendPoints
- array of end candidatesconstraint
- network constraintpairwiseMatrix
- a matrix that specifies for which pairs the shortest paths need to be computed. If the matrix element for pair (i, j) is set to 0, then the shortest path from i to j does not need to be computed; otherwise it must be computed. If this parameter is set to null, then the shortest paths for all pairs must be computed.LODNetworkException
public void setNetworkAnalyst(NetworkAnalyst analyst)
PairwiseShortestPaths
setNetworkAnalyst
in interface PairwiseShortestPaths
public void init(org.w3c.dom.Element parameter)
XMLConfigurable
init
in interface XMLConfigurable
parameter
- an XML element containing the necessary information to initialize the object.public java.lang.String getXMLSchema()
XMLConfigurable
getXMLSchema
in interface XMLConfigurable
public void shortestPathsLight(PointOnNet[][] startPoints, PointOnNet[][] endPoints, LODNetworkConstraint constraint, Matrix<java.lang.Integer> pairwiseMatrix, int direction, PairwisePathResultIO pathIO) throws LODNetworkException
PairwiseShortestPaths
shortestPathsLight
in interface PairwiseShortestPaths
startPoints
- array of start candidatesendPoints
- array of end candidatesconstraint
- network constraintpairwiseMatrix
- a matrix that specifies for which pairs the shortest paths need to be computed. If the matrix element for pair (i, j) is set to 0, then the shortest path from i to j does not need to be computed; otherwise it must be computed. If this parameter is set to null, then the shortest paths for all pairs must be computed.LODNetworkException
public double[][] shortestPathCosts(PointOnNet[][] startPoints, PointOnNet[][] endPoints, LODNetworkConstraint constraint, Matrix<java.lang.Integer> pairwiseMatrix, int direction) throws LODNetworkException
PairwiseShortestPaths
shortestPathCosts
in interface PairwiseShortestPaths
startPoints
- array of start candidatesendPoints
- array of end candidatesconstraint
- network constraintpairwiseMatrix
- a matrix that specifies for which pairs the shortest paths need to be computed. If the matrix element for pair (i, j) is set to 0, then the shortest path from i to j does not need to be computed; otherwise it must be computed. If this parameter is set to null, then the shortest paths for all pairs must be computed.LODNetworkException