public class LMPreparationHandler extends Object
Constructor and Description |
---|
LMPreparationHandler() |
Modifier and Type | Method and Description |
---|---|
LMPreparationHandler |
addLMConfig(LMConfig lmConfig)
Decouple weightings from PrepareLandmarks as we need weightings for the graphstorage and the
graphstorage for the preparation.
|
LMPreparationHandler |
addPreparation(PrepareLandmarks plm) |
void |
createPreparations(GraphHopperStorage ghStorage,
LocationIndex locationIndex)
This method creates the landmark storages ready for landmark creation.
|
RoutingAlgorithmFactory |
getAlgorithmFactory(String profile) |
int |
getLandmarks() |
List<LMConfig> |
getLMConfigs() |
List<LMProfile> |
getLMProfiles() |
List<PrepareLandmarks> |
getPreparations() |
int |
getPreparationThreads() |
boolean |
hasLMProfiles() |
void |
init(GraphHopperConfig ghConfig) |
boolean |
isDisablingAllowed() |
boolean |
isEnabled() |
boolean |
loadOrDoWork(StorableProperties properties,
boolean closeEarly)
This method calculates the landmark data for all profiles (optionally in parallel) or if already existent loads it.
|
LMPreparationHandler |
setDisablingAllowed(boolean disablingAllowed) |
LMPreparationHandler |
setLMProfiles(Collection<LMProfile> lmProfiles)
Enables the use of landmarks to reduce query times.
|
LMPreparationHandler |
setLMProfiles(LMProfile... lmProfiles) |
void |
setPreparationThreads(int preparationThreads)
This method changes the number of threads used for preparation on import.
|
int |
size() |
public void init(GraphHopperConfig ghConfig)
public int getLandmarks()
public LMPreparationHandler setDisablingAllowed(boolean disablingAllowed)
public final boolean isDisablingAllowed()
public final boolean isEnabled()
public int getPreparationThreads()
public void setPreparationThreads(int preparationThreads)
public LMPreparationHandler setLMProfiles(LMProfile... lmProfiles)
public LMPreparationHandler setLMProfiles(Collection<LMProfile> lmProfiles)
public LMPreparationHandler addLMConfig(LMConfig lmConfig)
public LMPreparationHandler addPreparation(PrepareLandmarks plm)
public boolean hasLMProfiles()
public int size()
public List<PrepareLandmarks> getPreparations()
public RoutingAlgorithmFactory getAlgorithmFactory(String profile)
RoutingAlgorithmFactory
for LM or throw an error if no preparation is available for the given
profile namepublic boolean loadOrDoWork(StorableProperties properties, boolean closeEarly)
for a very similar method
public void createPreparations(GraphHopperStorage ghStorage, LocationIndex locationIndex)
Copyright © 2012–2020. All rights reserved.