Interface NFEAnalysisIOService
-
- All Superinterfaces:
NFEIOService
- All Known Implementing Classes:
JDBCAnalysisIOService
public interface NFEAnalysisIOService extends NFEIOService
This interface is the entry point to the feature analysis operations supported by NFE.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deletePath(NFEFeature nfeFeature)
Deletes feature path.java.util.List<NFEFeature>
runNearestNeighbors(NFENearestNeighbors nearestNeighbors, boolean useCachedNetwork, NFEExpressionAnalyzer nfeExpressionAnalyzer, LODNetworkConstraint constraint)
Finds the nearest features from the start feature.NFEFeature
runShortestPath(NFEShortestPath shortestPath, boolean useCachedNetwork, NFEExpressionAnalyzer nfeExpressionAnalyzer, LODNetworkConstraint constraint)
Finds the shortest path from the start feature to the end feature.java.util.List<NFEFeature>
runTSP(NFETsp nfeTsp, boolean useCachedNetwork, NFEExpressionAnalyzer nfeExpressionAnalyzer, LODNetworkConstraint constraint)
Returns the traveling salesman tour covering the input features.java.util.List<NFEFeature>
runWithinCost(NFEWithinCost withinCost, boolean useCachedNetwork, NFEExpressionAnalyzer nfeExpressionAnalyzer, LODNetworkConstraint constraint)
Finds features within the given cost from the start feature.void
savePaths(java.util.List<NFEFeature> featureList)
Saves feature paths.-
Methods inherited from interface oracle.spatial.network.nfe.io.service.NFEIOService
getDataSource, getModel, getServiceProvider, setDataSource, setModel
-
-
-
-
Method Detail
-
savePaths
void savePaths(java.util.List<NFEFeature> featureList) throws NFEIOException
Saves feature paths.- Parameters:
featureList
- list of the feature paths to save- Throws:
NFEIOException
- if an NFE error occurs.
-
deletePath
void deletePath(NFEFeature nfeFeature) throws NFEIOException
Deletes feature path.- Parameters:
nfeFeature
- path to delete- Throws:
NFEIOException
- if an NFE error occurs.
-
runShortestPath
NFEFeature runShortestPath(NFEShortestPath shortestPath, boolean useCachedNetwork, NFEExpressionAnalyzer nfeExpressionAnalyzer, LODNetworkConstraint constraint) throws NFEIOException
Finds the shortest path from the start feature to the end feature. The start feature and the end feature can belong to different feature layers. Set shortestPath.setReverseDirection to true to use reverse search direction. Enable the analysis on the model before to use this function with modelService.enableAnalysisInModel.- Parameters:
shortestPath
- shortest path analysis datauseCachedNetwork
- if true use a cached network, if false reload the needed network datanfeExpressionAnalyzer
- needed in case of customized cost, the analyzer will be used to calculate the customized cost expressionconstraint
- network constraint- Returns:
- path feature representing the shortest path from the start feature to the end feature
- Throws:
NFEIOException
- if an NFE error occurs.
-
runNearestNeighbors
java.util.List<NFEFeature> runNearestNeighbors(NFENearestNeighbors nearestNeighbors, boolean useCachedNetwork, NFEExpressionAnalyzer nfeExpressionAnalyzer, LODNetworkConstraint constraint) throws NFEIOException
Finds the nearest features from the start feature. The searched features will belong to the featureLayer specified in the NFENearestNeighbors object. For example if the feature layer is HOTEL and numberOfNeighbors is 5 then the analysis will find the 5 nearest hotels. Enable the analysis on the model before to use this function with modelService.enableAnalysisInModel.- Parameters:
nearestNeighbors
- nearest neighbor analysis datauseCachedNetwork
- if true use a cached network, if false reload the needed network datanfeExpressionAnalyzer
- needed in case of customized cost, the analyzer will be used to calculate the customized cost expressionconstraint
- network constraint- Returns:
- path features representing the shortest paths from a start feature to the nearest neighbors
- Throws:
NFEIOException
- if an NFE error occurs.
-
runWithinCost
java.util.List<NFEFeature> runWithinCost(NFEWithinCost withinCost, boolean useCachedNetwork, NFEExpressionAnalyzer nfeExpressionAnalyzer, LODNetworkConstraint constraint) throws NFEIOException
Finds features within the given cost from the start feature. The searched features will belong to the featureLayer specified in the NFEWithinCost object. Enable the analysis on the model before to use this function with modelService.enableAnalysisInModel.- Parameters:
withinCost
- within cost analysis datauseCachedNetwork
- if true use a cached network, if false reload the needed network datanfeExpressionAnalyzer
- needed in case of customized cost, the analyzer will be used to calculate the customized cost expressionconstraint
- network constraint- Returns:
- path features representing the shortest paths from a start feature to the features within the given cost
- Throws:
NFEIOException
- if an NFE error occurs.
-
runTSP
java.util.List<NFEFeature> runTSP(NFETsp nfeTsp, boolean useCachedNetwork, NFEExpressionAnalyzer nfeExpressionAnalyzer, LODNetworkConstraint constraint) throws NFEIOException
Returns the traveling salesman tour covering the input features. Enable the analysis on the model before to use this function with modelService.enableAnalysisInModel.- Parameters:
nfeTsp
- TSP analysis datauseCachedNetwork
- if true use a cached network, if false reload the needed network datanfeExpressionAnalyzer
- needed in case of customized cost, the analyzer will be used to calculate the customized cost expressionconstraint
- network constraint- Returns:
- traveling salesman tour
- Throws:
NFEIOException
- if an NFE error occurs.
-
-