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 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.
      • 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 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

        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 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

        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 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

        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 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.