Codota Logo
PrepareContractionHierarchies.setLogMessages
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
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

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • Menu (java.awt)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Collectors (java.util.stream)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now