Class NFENearestNeighbors


  • public class NFENearestNeighbors
    extends java.lang.Object
    Provides the data to run a nearest neighbor analysis.
    • Constructor Detail

      • NFENearestNeighbors

        public NFENearestNeighbors()
    • Method Detail

      • getAnalysisCost

        public AnalysisCost getAnalysisCost()
        Returns the analysis cost.
        Returns:
        analysis cost
      • setAnalysisCost

        public void setAnalysisCost​(AnalysisCost analysisCost)
        Sets the analysis cost.
        Parameters:
        analysisCost - analysis cost
      • getNFEStartFeature

        public NFEFeature getNFEStartFeature()
        Returns the start feature.
        Returns:
        start feature
      • setNFEStartFeature

        public void setNFEStartFeature​(NFEFeature nfeStartFeature)
        Sets the start feature.
        Parameters:
        nfeStartFeature - start feature
      • getNFEFeatureLayer

        public NFEFeatureLayer getNFEFeatureLayer()
        Returns the feature layer to search for neighbors. Only the feature in this feature layer will included in the search.
        Returns:
        feature layer to search for neighbors
      • setNFEFeatureLayer

        public void setNFEFeatureLayer​(NFEFeatureLayer nfeFeatureLayer)
        Sets the feature layer to search for neighbors. Only the feature in this feature layer will included in the search.
        Parameters:
        nfeFeatureLayer - feature layer to search for neighbors
      • getNumberOfNeighbors

        public int getNumberOfNeighbors()
        Returns the number of neighbors to be returned.
        Returns:
        number of neighbors to be returned
      • setNumberOfNeighbors

        public void setNumberOfNeighbors​(int numberOfNeighbors)
        Sets the number of neighbors to be returned.
        Parameters:
        numberOfNeighbors - number of neighbors to be returned