|
Oracle® Spatial Java API Reference 11g Release 2 (11.2) E11829-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.spatial.network.lod.DynamicLinkLevelSelector
public class DynamicLinkLevelSelector
This implementation of LinkLevelSelector dynamically assigns link level to the next node according to the distance from the next node to the start/end point.
| Constructor Summary | |
|---|---|
DynamicLinkLevelSelector(NetworkAnalyst analyst, int maxLinkLevel, HeuristicCostFunction costFunction, double[] costThresholds, int numHighLevelNeighbors, double costMultiplier, LODNetworkConstraint constraint)Returns a dynamic link level selector. |
|
| Method Summary | |
|---|---|
int |
getLinkLevelToExpand(LODAnalysisInfo ai)Returns the link level for the next node to expend on. |
int[] |
getUserDataCategories()Returns the required user data categories. |
boolean |
requiresAnalysisInfo()Whether analysis info is required. |
void |
reset(HeavyPointOnNet[][] points)Resets the attributes of this link level selector according to the input points of interest. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicLinkLevelSelector(NetworkAnalyst analyst,
int maxLinkLevel,
HeuristicCostFunction costFunction,
double[] costThresholds,
int numHighLevelNeighbors,
double costMultiplier,
LODNetworkConstraint constraint)
throws LODNetworkException
maxLinkLevel - maximum link level to expand oncostFunction - heuristic cost functioncostThresholds - cost threshold. If the heuristic cost from the start node to the end node is less than the costThresholds[i], then the link level to expand on is set to the link level i+1.numHighLevelNeighbors - number of high level nodes to consider while computing the start and end cost threshold. The higher the value of this parameter, the more low level expansion will be used.costMultiplier - cost mulitplier used to compute the start and end cost threshold. The higher the value of this parameter, the more low level expansions will be used.LODNetworkException| Method Detail |
|---|
public void reset(HeavyPointOnNet[][] points)
throws LODNetworkException
LinkLevelSelectorreset in interface LinkLevelSelectorpoints - points of interest. Each member of the array is an array of equivalent points. For example, in a road network, equivalent points can be the points on either side of a two way road.LODNetworkException
public int getLinkLevelToExpand(LODAnalysisInfo ai)
throws LODNetworkException
LinkLevelSelectorgetLinkLevelToExpand in interface LinkLevelSelectorai - analysis informationLODNetworkExceptionpublic boolean requiresAnalysisInfo()
LinkLevelSelectorrequiresAnalysisInfo in interface LinkLevelSelectorpublic int[] getUserDataCategories()
LinkLevelSelectorgetUserDataCategories in interface LinkLevelSelector
|
Oracle® Spatial Java API Reference 11g Release 2 (11.2) E11829-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||