com.supermap.analyst.networkanalyst

Class NetworkBuilder

  • java.lang.Object
    • com.supermap.analyst.networkanalyst.NetworkBuilder


  • public class NetworkBuilder
    extends java.lang.Object
    Build a network dataset.
    • Constructor Detail

      • NetworkBuilder

        public NetworkBuilder()
    • Method Detail

      • buildNetwork

        @Deprecated
        public static DatasetVector buildNetwork(DatasetVector lineDataset,
                                                              Datasource outputDatasource,
                                                              java.lang.String networkDatasetName,
                                                              double tolerance)
        Deprecated. 
        Constructs a network dataset based on a line dataset
        Parameters:
        lineDataset - DatasetVector The line dataset
        outputDatasource - Datasource Output datasource
        networkDatasetName - String The name of the output network dataset
        tolerance - The tolerance
        Returns:
        DatasetVector
      • buildNetwork

        @Deprecated
        public static DatasetVector buildNetwork(DatasetVector[] lineDatasets,
                                                              DatasetVector[] pointDatasets,
                                                              Datasource outputDatasource,
                                                              java.lang.String networkDatasetName,
                                                              NetworkSplitMode networkSplitMode,
                                                              double tolerance)
        Deprecated. 
        Constructs a network dataset based on a line dataset array and a point dataset array
        Parameters:
        lineDatasets - DatasetVector[] The line dataset array
        pointDatasets - DatasetVector[] The point dataset array
        outputDatasource - Datasource Output datasource
        networkDatasetName - String The name of the output network dataset
        networkSplitMode - NetworkSplitMode The split mode
        tolerance - double whether points can be taken as the tolerance of nodes in a network
        Returns:
        DatasetVector
      • buildNetwork

        public static DatasetVector buildNetwork(DatasetVector line,
                                                 DatasetVector point,
                                                 java.lang.String edgeIDField,
                                                 java.lang.String fromNodeField,
                                                 java.lang.String toNodeField,
                                                 java.lang.String nodeIDField,
                                                 Datasource outputDatasource,
                                                 java.lang.String networkDatasetName)
        Build a network dataset.
        Parameters:
        line - the line dataset
        point - the point dataset
        edgeIDField - the line field
        fromNodeField - the starting point field
        toNodeField - the ending point field
        nodeIDField - the middle point field
        outputDatasource - the output datasource
        networkDatasetName - the name of the network dataset
        Returns:
        the output network dataset
      • createTurnTable

        public static DatasetVector createTurnTable(DatasetVector networkDataset,
                                                    QueryParameter queryParameter,
                                                    Datasource outputDatasource,
                                                    java.lang.String outputDatasetName)
        Creates the turn table dataset.
        Parameters:
        networkDataset - the network dataset
        queryParameter - Query parameter
        outputDatasource - the output datasource
        outputDatasetName - The name of the output dataset.
        Returns:
        DatasetVector
      • buildNetwork

        public static DatasetVector buildNetwork(DatasetVector[] lineDatasets,
                                                 DatasetVector[] pointDatasets,
                                                 java.lang.String[] lineFieldNames,
                                                 java.lang.String[] pointFieldNames,
                                                 Datasource outputDatasource,
                                                 java.lang.String networkDatasetName,
                                                 NetworkSplitMode networkSplitMode,
                                                 double tolerance)
        Parameters:
        lineDatasets - the line dataset array
        pointDatasets - the point dataset array
        lineFieldNames - the line dataset name array
        pointFieldNames - the point dataset name array
        outputDatasource - the output datasource
        networkDatasetName - outputs the name of the network dataset
        networkSplitMode - the split mode
        tolerance - The tolerance
        Returns:
        the output network dataset
      • appendToNetwork

        public static boolean appendToNetwork(DatasetVector networkDataset,
                                              DatasetVector[] datasets)
        Parameters:
        networkDataset - the network dataset
        datasets - the datasets
        Returns:
        the output network dataset
      • addSteppedListener

        public static void addSteppedListener(SteppedListener Listener)
        Add the progress bar listener
        Parameters:
        Listener - the progress bar listener
      • removeSteppedListener

        public static void removeSteppedListener(SteppedListener Listener)
        Removes the progress bar listener
        Parameters:
        Listener - the progress bar listener