Tabnine Logo
PrepareContractionHierarchies.setLazyUpdates
Code IndexAdd Tabnine to your IDE (free)

How to use
setLazyUpdates
method
in
com.graphhopper.routing.ch.PrepareContractionHierarchies

Best Java code snippets using com.graphhopper.routing.ch.PrepareContractionHierarchies.setLazyUpdates (Showing top 2 results out of 315)

origin: com.graphhopper/graphhopper

public void createPreparations( GraphHopperStorage ghStorage, TraversalMode traversalMode )
{
  if (!isEnabled() || !preparations.isEmpty())
    return;
  if (weightings.isEmpty())
    throw new IllegalStateException("No CH weightings found");
  traversalMode = getNodeBase();
  for (Weighting weighting : getWeightings())
  {
    PrepareContractionHierarchies tmpPrepareCH = new PrepareContractionHierarchies(
        new GHDirectory("", DAType.RAM_INT), ghStorage, ghStorage.getGraph(CHGraph.class, weighting),
        weighting.getFlagEncoder(), weighting, traversalMode);
    tmpPrepareCH.setPeriodicUpdates(preparationPeriodicUpdates).
        setLazyUpdates(preparationLazyUpdates).
        setNeighborUpdates(preparationNeighborUpdates).
        setLogMessages(preparationLogMessages);
    addPreparation(tmpPrepareCH);
  }
}
origin: com.rgi-corp/graphhopper

public void createPreparations(GraphHopperStorage ghStorage, TraversalMode traversalMode) {
  if (!isEnabled() || !preparations.isEmpty())
    return;
  if (weightings.isEmpty())
    throw new IllegalStateException("No CH weightings found");
  traversalMode = getNodeBase();
  for (Weighting weighting : getWeightings()) {
    if (weighting instanceof GenericWeighting) {
      ((GenericWeighting) weighting).setGraph(ghStorage);
    }
    PrepareContractionHierarchies tmpPrepareCH = new PrepareContractionHierarchies(
        new GHDirectory("", DAType.RAM_INT), ghStorage, ghStorage.getGraph(CHGraph.class, weighting),
        weighting, traversalMode);
    tmpPrepareCH.setPeriodicUpdates(preparationPeriodicUpdates).
        setLazyUpdates(preparationLazyUpdates).
        setNeighborUpdates(preparationNeighborUpdates).
        setLogMessages(preparationLogMessages);
    addPreparation(tmpPrepareCH);
  }
}
com.graphhopper.routing.chPrepareContractionHierarchiessetLazyUpdates

Popular methods of PrepareContractionHierarchies

  • getWeighting
  • <init>
  • doWork
  • calculatePriority
    Calculates the priority of adjNode v without changing the graph. Warning: the calculated priority mu
  • close
  • contractNodes
  • getTimesAsString
  • initFromGraph
  • prepareNodes
  • addShortcuts
    Introduces the necessary shortcuts for adjNode v in the graph.
  • findShortcuts
    Finds shortcuts, does not change the underlying graph.
  • fromGraphHopperStorage
  • findShortcuts,
  • fromGraphHopperStorage,
  • getCoords,
  • getOrigEdgeCount,
  • setLogMessages,
  • setNeighborUpdates,
  • setOrigEdgeCount,
  • setPeriodicUpdates,
  • createAStarBidirection

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now