Class JDBCAnalysisIOService

    • Constructor Detail

    • Method Detail

      • runShortestPath

        public NFEFeature runShortestPath​(NFEShortestPath shortestPath,
                                          boolean useCachedNetwork,
                                          NFEExpressionAnalyzer nfeExpressionAnalyzer,
                                          LODNetworkConstraint constraint)
                                   throws NFEIOException
        Description copied from interface: NFEAnalysisIOService
        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.
        Specified by:
        runShortestPath in interface NFEAnalysisIOService
        Parameters:
        shortestPath - shortest path analysis data
        useCachedNetwork - if true use a cached network, if false reload the needed network data
        nfeExpressionAnalyzer - needed in case of customized cost, the analyzer will be used to calculate the customized cost expression
        constraint - 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

        public java.util.List<NFEFeature> runNearestNeighbors​(NFENearestNeighbors nearestNeighbors,
                                                              boolean useCachedNetwork,
                                                              NFEExpressionAnalyzer nfeExpressionAnalyzer,
                                                              LODNetworkConstraint constraint)
                                                       throws NFEIOException
        Description copied from interface: NFEAnalysisIOService
        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.
        Specified by:
        runNearestNeighbors in interface NFEAnalysisIOService
        Parameters:
        nearestNeighbors - nearest neighbor analysis data
        useCachedNetwork - if true use a cached network, if false reload the needed network data
        nfeExpressionAnalyzer - needed in case of customized cost, the analyzer will be used to calculate the customized cost expression
        constraint - 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

        public java.util.List<NFEFeature> runWithinCost​(NFEWithinCost withinCost,
                                                        boolean useCachedNetwork,
                                                        NFEExpressionAnalyzer nfeExpressionAnalyzer,
                                                        LODNetworkConstraint constraint)
                                                 throws NFEIOException
        Description copied from interface: NFEAnalysisIOService
        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.
        Specified by:
        runWithinCost in interface NFEAnalysisIOService
        Parameters:
        withinCost - within cost analysis data
        useCachedNetwork - if true use a cached network, if false reload the needed network data
        nfeExpressionAnalyzer - needed in case of customized cost, the analyzer will be used to calculate the customized cost expression
        constraint - 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

        public java.util.List<NFEFeature> runTSP​(NFETsp nfeTsp,
                                                 boolean useCachedNetwork,
                                                 NFEExpressionAnalyzer nfeExpressionAnalyzer,
                                                 LODNetworkConstraint constraint)
                                          throws NFEIOException
        Description copied from interface: NFEAnalysisIOService
        Returns the traveling salesman tour covering the input features. Enable the analysis on the model before to use this function with modelService.enableAnalysisInModel.
        Specified by:
        runTSP in interface NFEAnalysisIOService
        Parameters:
        nfeTsp - TSP analysis data
        useCachedNetwork - if true use a cached network, if false reload the needed network data
        nfeExpressionAnalyzer - needed in case of customized cost, the analyzer will be used to calculate the customized cost expression
        constraint - network constraint
        Returns:
        traveling salesman tour
        Throws:
        NFEIOException - if an NFE error occurs.