public class NetworkSearch
extends java.lang.Object
Constructor and Description |
---|
NetworkSearch() |
NetworkSearch(NetworkExplorer ne, LinkCostCalculator[] lccs, NodeCostCalculator[] nccs, LinkLevelSelector lls, IdentifiablePriorityQueue queue) |
Modifier and Type | Method and Description |
---|---|
Feature[] |
findConnectedFeatures(PointOnNet[] startPoints, int[] featureLayers, LODNetworkConstraint constraint, FeatureFilter featureFilter, int direction)
Returns the features within the given cost and the paths to/from them.
|
LinkCostCalculator[] |
getLinkCostCalculators() |
LinkLevelSelector |
getLinkLevelSelector() |
NodeCostCalculator[] |
getNodeCostCalculators() |
java.lang.String |
getXMLSchema() |
void |
init(org.w3c.dom.Element parameter) |
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) |
NetworkBuffer |
networkBuffer(PointOnNet[] startPoints, double cost, int direction, LODNetworkConstraint constraint)
Returns network buffer within the specified cost.
|
static PathFeature |
preparePathFeature(LogicalSubPath subPath, long pathId) |
void |
reset() |
void |
setInitialAnalysisInfo(LODAnalysisInfo analysisInfo) |
void |
setLinkCostCalculators(LinkCostCalculator[] lccs) |
void |
setLinkLevelSelector(LinkLevelSelector lls) |
void |
setNetworkAnalyst(NetworkAnalyst analyst) |
void |
setNetworkExplorer(NetworkExplorer ne) |
void |
setNodeCostCalculators(NodeCostCalculator[] nccs) |
LogicalSubPath |
shortestPath(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.
|
public NetworkSearch()
public NetworkSearch(NetworkExplorer ne, LinkCostCalculator[] lccs, NodeCostCalculator[] nccs, LinkLevelSelector lls, IdentifiablePriorityQueue queue)
public void init(org.w3c.dom.Element parameter)
public java.lang.String getXMLSchema()
public void setNetworkExplorer(NetworkExplorer ne)
public void setInitialAnalysisInfo(LODAnalysisInfo analysisInfo)
public LinkLevelSelector getLinkLevelSelector()
public void setLinkLevelSelector(LinkLevelSelector lls)
public LinkCostCalculator[] getLinkCostCalculators()
public void setLinkCostCalculators(LinkCostCalculator[] lccs)
public NodeCostCalculator[] getNodeCostCalculators()
public void setNodeCostCalculators(NodeCostCalculator[] nccs)
public LogicalLightSubPath[] nearestNeighbors(PointOnNet[] startPoints, int numberOfNeighbors, int direction, LODNetworkConstraint constraint, LODGoalNode goalNode, 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 static PathFeature preparePathFeature(LogicalSubPath subPath, long pathId) throws LODNetworkException
LODNetworkException
public void setNetworkAnalyst(NetworkAnalyst analyst)
public void reset()
public LogicalSubPath shortestPath(PointOnNet[] startPoints, PointOnNet[] endPoints, LODNetworkConstraint constraint, int direction) throws LODNetworkException
LODNetworkException
public Feature[] findConnectedFeatures(PointOnNet[] startPoints, int[] featureLayers, LODNetworkConstraint constraint, FeatureFilter featureFilter, int direction) throws LODNetworkException
startPoints
-featureLayers
-direction
-constraint
-featureFilter
-LODNetworkException