Package oracle.spatial.network.lod
Class DummyLinkLevelSelector
- java.lang.Object
-
- oracle.spatial.network.lod.DummyLinkLevelSelector
-
- All Implemented Interfaces:
LinkLevelSelector
public class DummyLinkLevelSelector extends java.lang.Object implements LinkLevelSelector
This implementation of LinkLevelSelector always returns the fixed link level specified in the constructor.- Since:
- 11gR2
-
-
Constructor Summary
Constructors Constructor Description DummyLinkLevelSelector()
DummyLinkLevelSelector(int linkLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLinkLevelToExpand(LODAnalysisInfo ai)
Returns the link level for the next node to expand 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.void
setNetworkAnalyst(NetworkAnalyst analyst)
This method allows caller to pass the network analyst object to this link level selector, so that the link level selector can call the analysis functions provided by the network analyst, or access the network explorer associated with the network analyst.
-
-
-
Method Detail
-
getLinkLevelToExpand
public int getLinkLevelToExpand(LODAnalysisInfo ai)
Description copied from interface:LinkLevelSelector
Returns the link level for the next node to expand on.- Specified by:
getLinkLevelToExpand
in interfaceLinkLevelSelector
- Parameters:
ai
- analysis information- Returns:
-
requiresAnalysisInfo
public boolean requiresAnalysisInfo()
Description copied from interface:LinkLevelSelector
Whether analysis info is required.- Specified by:
requiresAnalysisInfo
in interfaceLinkLevelSelector
- Returns:
- true is analysis info cannot be null; false, otherwise.
-
getUserDataCategories
public int[] getUserDataCategories()
Description copied from interface:LinkLevelSelector
Returns the required user data categories.- Specified by:
getUserDataCategories
in interfaceLinkLevelSelector
- Returns:
-
reset
public void reset(HeavyPointOnNet[][] points)
Description copied from interface:LinkLevelSelector
Resets the attributes of this link level selector according to the input points of interest.- Specified by:
reset
in interfaceLinkLevelSelector
- Parameters:
points
- 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.
-
setNetworkAnalyst
public void setNetworkAnalyst(NetworkAnalyst analyst)
Description copied from interface:LinkLevelSelector
This method allows caller to pass the network analyst object to this link level selector, so that the link level selector can call the analysis functions provided by the network analyst, or access the network explorer associated with the network analyst. If network analyst is not needed by the link level selector, the link level selector can choose to do nothing with this method.- Specified by:
setNetworkAnalyst
in interfaceLinkLevelSelector
-
-