org.opentripplanner.graph_builder.services.GraphBuilderModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
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 - 2025 Weber Informatics LLC | Privacy Policy