public class BreadthFirstSearch extends NetworkSearch implements ShortestPath
Constructor and Description |
---|
BreadthFirstSearch() |
BreadthFirstSearch(NetworkExplorer ne,
LinkCostCalculator[] lccs,
NodeCostCalculator[] nccs,
LinkLevelSelector lls) |
BreadthFirstSearch(NetworkExplorer ne,
LinkCostCalculator[] lccs,
NodeCostCalculator[] nccs,
LinkLevelSelector lls,
PriorityQueue queue) |
Modifier and Type | Method and Description |
---|---|
BreadthFirstSearch |
clone() |
FeaturePath[] |
nearestFeatures(PointOnNet[] startPoints,
int numberOfFeatures,
int[] featureLayers,
LODNetworkConstraint constraint,
FeatureFilter featureFilter,
int direction) |
LogicalLightSubPath[] |
nearestNeighbors(PointOnNet[] startPoints,
int numberOfNeighbors,
int direction,
LODNetworkConstraint constraint,
LODGoalNode goalNode,
boolean returnFullPath) |
PathToPoint[] |
nearestPoints(PointOnNet[] startPoint,
PointOnNet[][] endPoints,
int k,
LODNetworkConstraint constraint,
int direction,
boolean returnFullPath) |
NetworkBuffer |
networkBuffer(PointOnNet[] startPoints,
double cost,
int direction,
LODNetworkConstraint constraint)
Returns network buffer within the specified cost.
|
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.
|
LogicalSubPath[] |
shortestPaths(PointOnNet[] startPoints,
PointOnNet[][] endPoints,
LODNetworkConstraint constraint,
int direction) |
LogicalLightSubPath[] |
shortestPathsLight(PointOnNet[] startPoints,
PointOnNet[][] endPoints,
LODNetworkConstraint constraint,
int direction) |
LogicalLightSubPath[] |
traceOut(PointOnNet[] startPoints,
double cost,
int direction,
LODNetworkConstraint constraint,
LODGoalNode goalNode,
boolean returnFullPath,
boolean returnBoundaryPointsOnly) |
LogicalLightSubPath[] |
withinCost(PointOnNet[] startPoints,
double cost,
int direction,
LODNetworkConstraint constraint,
LODGoalNode goalNode,
boolean returnFullPath,
boolean returnBoundaryPointsOnly) |
FeaturePath[] |
withinCostFeatures(PointOnNet[] startPoints,
double cost,
int[] featureLayers,
LODNetworkConstraint constraint,
FeatureFilter featureFilter,
int direction)
Returns the features and the paths to/from them within the given cost.
|
PathToPoint[] |
withinCostPoints(PointOnNet[] startPoint,
PointOnNet[][] endPoints,
double maxCost,
LODNetworkConstraint constraint,
int direction,
boolean returnFullPath) |
findConnectedFeatures, getLinkCostCalculators, getLinkLevelSelector, getNodeCostCalculators, getXMLSchema, init, initSearch, preparePathFeature, reset, setInitialAnalysisInfo, setLinkCostCalculators, setLinkLevelSelector, setNetworkAnalyst, setNetworkExplorer, setNodeCostCalculators
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLinkCostCalculators, getLinkLevelSelector, getNodeCostCalculators, setInitialAnalysisInfo, setLinkCostCalculators, setLinkLevelSelector, setNetworkAnalyst, setNodeCostCalculators
public BreadthFirstSearch()
public BreadthFirstSearch(NetworkExplorer ne, LinkCostCalculator[] lccs, NodeCostCalculator[] nccs, LinkLevelSelector lls, PriorityQueue queue)
public BreadthFirstSearch(NetworkExplorer ne, LinkCostCalculator[] lccs, NodeCostCalculator[] nccs, LinkLevelSelector lls)
public BreadthFirstSearch clone()
clone
in interface ShortestPath
clone
in class java.lang.Object
public LogicalLightSubPath[] nearestNeighbors(PointOnNet[] startPoints, int numberOfNeighbors, int direction, LODNetworkConstraint constraint, LODGoalNode goalNode, boolean returnFullPath) throws LODNetworkException
LODNetworkException
public PathToPoint[] nearestPoints(PointOnNet[] startPoint, PointOnNet[][] endPoints, int k, LODNetworkConstraint constraint, int direction, boolean returnFullPath) throws LODNetworkException
LODNetworkException
public PathToPoint[] withinCostPoints(PointOnNet[] startPoint, PointOnNet[][] endPoints, double maxCost, LODNetworkConstraint constraint, int direction, boolean returnFullPath) throws LODNetworkException
LODNetworkException
public LogicalLightSubPath[] withinCost(PointOnNet[] startPoints, double cost, int direction, LODNetworkConstraint constraint, LODGoalNode goalNode, boolean returnFullPath, boolean returnBoundaryPointsOnly) throws LODNetworkException
LODNetworkException
public LogicalLightSubPath[] traceOut(PointOnNet[] startPoints, double cost, int direction, LODNetworkConstraint constraint, LODGoalNode goalNode, boolean returnFullPath, boolean returnBoundaryPointsOnly) throws LODNetworkException
LODNetworkException
public NetworkBuffer networkBuffer(PointOnNet[] startPoints, double cost, int direction, LODNetworkConstraint constraint) throws LODNetworkException
startPoints
- cost
- direction
- constraint
- LODNetworkException
public FeaturePath[] nearestFeatures(PointOnNet[] startPoints, int numberOfFeatures, int[] featureLayers, LODNetworkConstraint constraint, FeatureFilter featureFilter, int direction) throws LODNetworkException
LODNetworkException
public FeaturePath[] withinCostFeatures(PointOnNet[] startPoints, double cost, int[] featureLayers, LODNetworkConstraint constraint, FeatureFilter featureFilter, int direction) throws LODNetworkException
startPoints
- cost
- direction
- constraint
- featureFilter
- LODNetworkException
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 LogicalSubPath[] shortestPaths(PointOnNet[] startPoints, PointOnNet[][] endPoints, LODNetworkConstraint constraint, int direction) throws LODNetworkException
LODNetworkException
public LogicalLightSubPath[] shortestPathsLight(PointOnNet[] startPoints, PointOnNet[][] endPoints, LODNetworkConstraint constraint, int direction) throws LODNetworkException
LODNetworkException