public class PruneFloatingIslands extends Object implements GraphBuilderModule
GraphBuilderModule
process. it design to remove small isolated
islands form the graph. Islands are created when there is no connectivity in the map, island
acts like trap since there is no connectivity there is no way in or out the island.
The module distinguish between two island types one with transit stops and one without stops.Constructor and Description |
---|
PruneFloatingIslands() |
Modifier and Type | Method and Description |
---|---|
void |
buildGraph(Graph graph,
HashMap<Class<?>,Object> extra)
Process whatever inputs were supplied to this module and add the resulting elements to the given graph.
|
void |
checkInputs()
Check that all inputs to the graphbuilder are valid; throw an exception if not.
|
List<String> |
getPrerequisites() |
List<String> |
provides() |
void |
setPruningThresholdIslandWithoutStops(int pruningThresholdIslandWithoutStops) |
void |
setPruningThresholdIslandWithStops(int pruningThresholdIslandWithStops) |
public void buildGraph(Graph graph, HashMap<Class<?>,Object> extra)
GraphBuilderModule
buildGraph
in interface GraphBuilderModule
public void checkInputs()
GraphBuilderModule
checkInputs
in interface GraphBuilderModule
public void setPruningThresholdIslandWithoutStops(int pruningThresholdIslandWithoutStops)
public void setPruningThresholdIslandWithStops(int pruningThresholdIslandWithStops)
Copyright © 2018. All rights reserved.