public class LMPreparationHandler extends Object
Constructor and Description |
---|
LMPreparationHandler() |
Modifier and Type | Method and Description |
---|---|
LMPreparationHandler |
addLMProfile(LMProfile lmProfile)
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(HintsMap map) |
int |
getLandmarks() |
List<LMProfileConfig> |
getLMProfileConfigs() |
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 |
setLMProfileConfigs(Collection<LMProfileConfig> lmProfileConfigs)
Enables the use of landmarks to reduce query times.
|
LMPreparationHandler |
setLMProfileConfigs(LMProfileConfig... lmProfileConfigs) |
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 setLMProfileConfigs(LMProfileConfig... lmProfileConfigs)
public LMPreparationHandler setLMProfileConfigs(Collection<LMProfileConfig> lmProfileConfigs)
public List<LMProfileConfig> getLMProfileConfigs()
public LMPreparationHandler addLMProfile(LMProfile lmProfile)
public LMPreparationHandler addPreparation(PrepareLandmarks plm)
public boolean hasLMProfiles()
public int size()
public List<PrepareLandmarks> getPreparations()
public RoutingAlgorithmFactory getAlgorithmFactory(HintsMap map)
RoutingAlgorithmFactory
for LM or throw an error if no preparation is available for the given
hintspublic boolean loadOrDoWork(StorableProperties properties, boolean closeEarly)
for a very similar method
public void createPreparations(GraphHopperStorage ghStorage, LocationIndex locationIndex)
Copyright © 2012–2020. All rights reserved.