Interface Importer

    • Method Detail

      • getFormat

        String getFormat()
        Get a unique identifier of the format.
      • getParameters

        default List<Parameter> getParameters()
        Get a description of import parameters
        Returns:
      • getComment

        String getComment()
        Get some information about this importer.
      • exists

        boolean exists​(ReadOnlyDataSource dataSource)
        Check if the data source is importable
        Parameters:
        dataSource - the data source
        Returns:
        true if the data source is importable, false otherwise
      • importData

        default Network importData​(ReadOnlyDataSource dataSource,
                                   NetworkFactory networkFactory,
                                   Properties parameters)
        Create a model.
        Parameters:
        dataSource - data source
        networkFactory - network factory
        parameters - some properties to configure the import
        Returns:
        the model
      • importData

        default Network importData​(ReadOnlyDataSource dataSource,
                                   NetworkFactory networkFactory,
                                   Properties parameters,
                                   Reporter reporter)
        Create a model.
        Parameters:
        dataSource - data source
        networkFactory - network factory
        parameters - some properties to configure the import
        reporter - the reporter used for functional logs
        Returns:
        the model
      • copy

        default void copy​(ReadOnlyDataSource fromDataSource,
                          DataSource toDataSource)
        Copy data from one data source to another.
        Parameters:
        fromDataSource - from data source
        toDataSource - destination data source