Modifier and Type | Field and Description |
---|---|
static String |
BUILDER_CONFIG_FILENAME |
boolean |
serializeGraph
Should the graph be serialized to disk after being created or not?
|
Constructor and Description |
---|
GraphBuilder(File path,
GraphBuilderParameters builderParams) |
Modifier and Type | Method and Description |
---|---|
void |
addMode(RoutingRequest mo) |
void |
addModule(GraphBuilderModule loader) |
static GraphBuilder |
forDirectory(CommandLineParameters params,
File dir)
Factory method to create and configure a GraphBuilder with all the appropriate modules to build a graph from
the files in the given directory, accounting for any configuration files located there.
|
Graph |
getGraph() |
void |
run() |
void |
setAlwaysRebuild(boolean alwaysRebuild) |
void |
setBaseGraph(String baseGraph) |
void |
setGraphBuilders(List<GraphBuilderModule> graphLoaders) |
void |
setModes(List<RoutingRequest> modeList) |
public static final String BUILDER_CONFIG_FILENAME
public boolean serializeGraph
public GraphBuilder(File path, GraphBuilderParameters builderParams)
public void addModule(GraphBuilderModule loader)
public void setGraphBuilders(List<GraphBuilderModule> graphLoaders)
public void setAlwaysRebuild(boolean alwaysRebuild)
public void setBaseGraph(String baseGraph)
public void addMode(RoutingRequest mo)
public void setModes(List<RoutingRequest> modeList)
public Graph getGraph()
public static GraphBuilder forDirectory(CommandLineParameters params, File dir)
Copyright © 2019. All rights reserved.