MATSIM
FastRouterDelegate.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * FastRouterDelegate.java
4  * *
5  * *********************************************************************** *
6  * *
7  * copyright : (C) 2011 by the members listed in the COPYING, *
8  * LICENSE and WARRANTY file. *
9  * email : info at matsim dot org *
10  * *
11  * *********************************************************************** *
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * See also COPYING, LICENSE and WARRANTY file *
18  * *
19  * *********************************************************************** */
20 
21 package org.matsim.core.router;
22 
28 
37 /*package*/ interface FastRouterDelegate {
38 
39  /*
40  * Some implementations might use this for lazy initialization.
41  */
42  /*package*/ void initialize();
43 
44  /*
45  * Constructs the path and replaces the nodes and links from the routing network
46  * with their corresponding nodes and links from the network.
47  */
48  /*package*/ Path constructPath(Node fromNode, Node toNode, double startTime, double arrivalTime);
49  /*
50  * For performance reasons the outgoing links of a node are stored in
51  * the routing network in an array instead of a map. Therefore we have
52  * to iterate over an array instead of over a map.
53  */
54  /*package*/ void relaxNode(final Node outNode, final Node toNode, final RouterPriorityQueue<Node> pendingNodes);
55 
56  /*
57  * The NodeData is taken from the RoutingNetworkNode and not from a map.
58  */
59  /*package*/ NodeData getData(final Node n);
60 
61  /*
62  * The DeadEndData is taken from the RoutingNetworkNode and not from a map.
63  */
64  /*package*/ PreProcessDijkstra.DeadEndData getPreProcessData(final Node n);
65 }