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

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

Best Java code snippets using com.graphhopper.routing.ch.PrepareContractionHierarchies.setLogMessages (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.chPrepareContractionHierarchiessetLogMessages

Javadoc

Specifies how often a log message should be printed. Specify something around 20 (20% of the start nodes).

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,
  • setLazyUpdates,
  • setNeighborUpdates,
  • setOrigEdgeCount,
  • setPeriodicUpdates,
  • createAStarBidirection

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JLabel (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Sublime Text plugins
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