public class BidirectionalBfs extends java.lang.Object implements ShortestPath
Constructor and Description |
---|
BidirectionalBfs(BreadthFirstSearch forwardBfs, BreadthFirstSearch backwardBfs) |
BidirectionalBfs(NetworkExplorer ne, LinkCostCalculator[] lccs, NodeCostCalculator[] nccs, LinkLevelSelector forwardLinkLevelSelector, LinkLevelSelector backwardLinkLevelSelector) |
Modifier and Type | Method and Description |
---|---|
ShortestPath |
clone() |
LinkCostCalculator[] |
getLinkCostCalculators()
Returns the link cost calculators.
|
LinkLevelSelector |
getLinkLevelSelector()
Returns the link level selector.
|
NodeCostCalculator[] |
getNodeCostCalculators()
Returns the node cost calculators.
|
void |
setInitialAnalysisInfo(LODAnalysisInfo analysisInfo)
Sets the initial analysis info.
|
void |
setLinkCostCalculators(LinkCostCalculator[] lccs)
Sets the link cost calculators.
|
void |
setLinkLevelSelector(LinkLevelSelector lls)
Sets the link level selector.
|
void |
setNetworkAnalyst(NetworkAnalyst analyst)
This method allows caller to pass the network analyst object to this shortest path algorithm 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.
|
void |
setNodeCostCalculators(NodeCostCalculator[] nccs)
Sets the node cost calculators.
|
LogicalSubPath |
shortestPath(PointOnNet[] startPoints, PointOnNet[] endPoints, LODNetworkConstraint constraint, int direction)
Returns the shortest path between a set of candidate start points and a set of end points.
|
public BidirectionalBfs(NetworkExplorer ne, LinkCostCalculator[] lccs, NodeCostCalculator[] nccs, LinkLevelSelector forwardLinkLevelSelector, LinkLevelSelector backwardLinkLevelSelector)
public BidirectionalBfs(BreadthFirstSearch forwardBfs, BreadthFirstSearch backwardBfs)
public LogicalSubPath shortestPath(PointOnNet[] startPoints, PointOnNet[] endPoints, LODNetworkConstraint constraint, int direction) throws LODNetworkException
ShortestPath
shortestPath
in interface ShortestPath
startPoints
- start candidatesendPoints
- end candidatesconstraint
- network constraintdirection
- NetworkExplorer.DIRECTION_FORWARD or NetworkExplorer.DIRECTION_BACKWARDLODNetworkException
public void setInitialAnalysisInfo(LODAnalysisInfo analysisInfo)
ShortestPath
setInitialAnalysisInfo
in interface ShortestPath
analysisInfo
- analysis informationpublic LinkLevelSelector getLinkLevelSelector()
ShortestPath
getLinkLevelSelector
in interface ShortestPath
public void setLinkLevelSelector(LinkLevelSelector lls)
ShortestPath
setLinkLevelSelector
in interface ShortestPath
lls
- link level selectorpublic LinkCostCalculator[] getLinkCostCalculators()
ShortestPath
getLinkCostCalculators
in interface ShortestPath
public void setLinkCostCalculators(LinkCostCalculator[] lccs)
ShortestPath
setLinkCostCalculators
in interface ShortestPath
public NodeCostCalculator[] getNodeCostCalculators()
ShortestPath
getNodeCostCalculators
in interface ShortestPath
public void setNodeCostCalculators(NodeCostCalculator[] nccs)
ShortestPath
setNodeCostCalculators
in interface ShortestPath
public void setNetworkAnalyst(NetworkAnalyst analyst)
ShortestPath
setNetworkAnalyst
in interface ShortestPath
public ShortestPath clone()
clone
in interface ShortestPath
clone
in class java.lang.Object