public class LandmarkStorage extends Object
Constructor and Description |
---|
LandmarkStorage(BaseGraph graph,
EncodedValueLookup encodedValueLookup,
Directory dir,
LMConfig lmConfig,
int landmarks) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
createLandmarks()
This method calculates the landmarks and initial weightings to & from them.
|
protected com.carrotsearch.hppc.IntHashSet |
findBorderEdgeIds(AreaIndex<SplitArea> areaIndex)
This method makes edges crossing the specified border inaccessible to split a bigger area into smaller subnetworks.
|
void |
flush() |
long |
getCapacity() |
int |
getLandmarkCount() |
int[] |
getLandmarks(int subnetwork) |
LMConfig |
getLMConfig() |
Weighting |
getLmSelectionWeighting() |
int |
getMinimumNodes() |
int |
getSubnetworksWithLandmarks() |
Weighting |
getWeighting()
This method returns the weighting for which the landmarks are originally created
|
boolean |
isClosed() |
boolean |
isEmpty() |
boolean |
loadExisting() |
void |
setAreaIndex(AreaIndex<SplitArea> areaIndex)
This method specifies the polygons which should be used to split the world wide area to improve performance and
quality in this scenario.
|
LandmarkStorage |
setLandmarkSuggestions(List<LandmarkSuggestion> landmarkSuggestions)
This method forces the landmark preparation to skip the landmark search and uses the specified landmark list instead.
|
void |
setLMSelectionWeighting(Weighting lmSelectionWeighting)
This weighting is used for the selection heuristic and is per default not the weighting specified in the constructor.
|
void |
setLogDetails(boolean logDetails)
By default do not log many details.
|
LandmarkStorage |
setMaximumWeight(double maxWeight)
Specify the maximum possible value for your used area.
|
void |
setMinimumNodes(int minimumNodes)
This method sets the required number of nodes of a subnetwork for which landmarks should be calculated.
|
String |
toString() |
public LandmarkStorage(BaseGraph graph, EncodedValueLookup encodedValueLookup, Directory dir, LMConfig lmConfig, int landmarks)
public LandmarkStorage setMaximumWeight(double maxWeight)
maxWeight
- use a negative value to automatically determine this value.public void setLogDetails(boolean logDetails)
public LandmarkStorage setLandmarkSuggestions(List<LandmarkSuggestion> landmarkSuggestions)
public void setMinimumNodes(int minimumNodes)
public int getMinimumNodes()
setMinimumNodes(int)
public void setLMSelectionWeighting(Weighting lmSelectionWeighting)
public Weighting getLmSelectionWeighting()
public Weighting getWeighting()
public LMConfig getLMConfig()
public void createLandmarks()
public void setAreaIndex(AreaIndex<SplitArea> areaIndex)
protected com.carrotsearch.hppc.IntHashSet findBorderEdgeIds(AreaIndex<SplitArea> areaIndex)
public int getLandmarkCount()
public int[] getLandmarks(int subnetwork)
public int getSubnetworksWithLandmarks()
public boolean isEmpty()
public boolean loadExisting()
public void flush()
public void close()
public boolean isClosed()
public long getCapacity()
Copyright © 2012–2022. All rights reserved.