All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.graph_builder.services.GraphBuilderModule Maven / Gradle / Ivy

package org.opentripplanner.graph_builder.services;

import org.opentripplanner.graph_builder.DataImportIssueStore;
import org.opentripplanner.routing.graph.Graph;

import java.util.HashMap;

/** Modules that add elements to a graph. These are plugins to the GraphBuilder. */
public interface GraphBuilderModule {

    /** Process whatever inputs were supplied to this module and add the resulting elements to the given graph. */
    public void buildGraph(
            Graph graph,
            HashMap, Object> extra,
            DataImportIssueStore issueStore
    );

    public default void buildGraph(
            Graph graph,
            HashMap, Object> extra
    ) {
        buildGraph(graph, extra, new DataImportIssueStore(false));
    }

    /** Check that all inputs to the graphbuilder are valid; throw an exception if not. */
    public void checkInputs();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy