Codota Logo
PreProcessDijkstra.containsData
Code IndexAdd Codota to your IDE (free)

How to use
containsData
method
in
org.matsim.core.router.util.PreProcessDijkstra

Best Java code snippets using org.matsim.core.router.util.PreProcessDijkstra.containsData (Showing top 4 results out of 315)

  • Common ways to obtain PreProcessDijkstra
private void myMethod () {
PreProcessDijkstra p =
  • Codota Iconnew PreProcessDijkstra()
  • Smart code suggestions by Codota
}
origin: matsim-org/matsim

public BackwardDijkstraMultipleDestinations(final Network network, final TravelDisutility costFunction, final TravelTime timeFunction,
    final PreProcessDijkstra preProcessData) {
  
  super(network, costFunction, timeFunction, preProcessData);
  this.network = network;
  this.costFunction = costFunction;
  this.timeFunction = timeFunction;
  if (preProcessData != null) {
    if (preProcessData.containsData() == false) {
      this.pruneDeadEnds = false;
      log.warn("The preprocessing data provided to router class Dijkstra contains no data! Please execute its run(...) method first!");
      log.warn("Running without dead-end pruning.");
    } else {
      this.pruneDeadEnds = true;
    }
  } else {
    this.pruneDeadEnds = false;
  }
}

origin: matsim-org/matsim

if (preProcessData.containsData() == false) {
  this.pruneDeadEnds = false;
  log.warn("The preprocessing data provided to router class Dijkstra contains no data! Please execute its run(...) method first!");
origin: matsim-org/matsim

if (!preProcessData.containsData()) {
  this.pruneDeadEnds = false;
  log.warn("The preprocessing data provided to router class Dijkstra contains no data! Please execute its run(...) method first!");
origin: matsim-org/matsim

  @Override
  public LeastCostPathCalculator createPathCalculator(final Network network, final TravelDisutility travelCosts, final TravelTime travelTimes) {
    
    RoutingNetwork routingNetwork = this.routingNetworks.get(network);
    PreProcessDijkstra preProcessDijkstra = this.preProcessData.get(network);
  
    if (routingNetwork == null) {
      routingNetwork = this.routingNetworkFactory.createRoutingNetwork(network);
      
      if (this.usePreProcessData) {
        if (preProcessDijkstra == null) {
          preProcessDijkstra = new PreProcessDijkstra();
          preProcessDijkstra.run(network);
          this.preProcessData.put(network, preProcessDijkstra);
        }
        if (preProcessDijkstra.containsData()) {
          for (RoutingNetworkNode node : routingNetwork.getNodes().values()) {
            node.setDeadEndData(preProcessDijkstra.getNodeData(node.getNode()));
          }
        }
      }
      
      this.routingNetworks.put(network, routingNetwork);
    }
    FastRouterDelegateFactory fastRouterFactory = new ArrayFastRouterDelegateFactory();
    
    return new BackwardFastMultiNodeDijkstra(routingNetwork, travelCosts, travelTimes, 
        preProcessDijkstra, fastRouterFactory, this.searchAllEndNodes);
  }
}
org.matsim.core.router.utilPreProcessDijkstracontainsData

Popular methods of PreProcessDijkstra

  • <init>
  • getNodeData
    Returns the role for the given Node. Creates a new Role if none exists yet.
  • run
  • getIncidentNodes
  • markDeadEnds
    Marks nodes that are in dead ends (i.e. nodes that are connected through a single node to the rest o

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getSystemService (Context)
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Option (scala)
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