|
MATSIM
|
Classes | |
| class | ComparatorCost |
| class | NodeData |
Public Member Functions | |
| LeastCostPathTree (TravelTime tt, TravelDisutility tc) | |
| void | calculate (final Network network, final Node origin, final double time) |
| final IdMap< Node, NodeData > | getTree () |
| final Node | getOrigin () |
| final double | getDepartureTime () |
Static Public Member Functions | |
| static void | main (String[] args) |
Protected Member Functions | |
| void | additionalComputationsHook (Link link, double currTime) |
Private Member Functions | |
| void | relaxNode (final Node n, PriorityQueue< Node > pendingNodes) |
Private Attributes | |
| Node | origin1 = null |
| double | dTime = Double.NaN |
| final TravelTime | ttFunction |
| final TravelDisutility | tcFunction |
| IdMap< Node, NodeData > | nodeData = null |
| final Vehicle | VEHICLE = VehicleUtils.getFactory().createVehicle(Id.create("theVehicle", Vehicle.class), VehicleUtils.createDefaultVehicleType()) |
| final Person | PERSON = PopulationUtils.getFactory().createPerson(Id.create("thePerson", Person.class)) |
Calculates a least-cost-path tree using Dijkstra's algorithm for calculating a shortest-path tree, given a node as root of the tree.
Definition at line 53 of file LeastCostPathTree.java.
| org.matsim.utils.leastcostpathtree.LeastCostPathTree.LeastCostPathTree | ( | TravelTime | tt, |
| TravelDisutility | tc | ||
| ) |
Definition at line 73 of file LeastCostPathTree.java.
Referenced by org.matsim.utils.leastcostpathtree.LeastCostPathTree.main().
| void org.matsim.utils.leastcostpathtree.LeastCostPathTree.calculate | ( | final Network | network, |
| final Node | origin, | ||
| final double | time | ||
| ) |
Definition at line 78 of file LeastCostPathTree.java.
References org.matsim.api.core.v01.Identifiable< T >.getId(), org.matsim.api.core.v01.IdMap< T, V >.put(), and org.matsim.utils.leastcostpathtree.LeastCostPathTree.relaxNode().

Definition at line 152 of file LeastCostPathTree.java.
References org.matsim.utils.leastcostpathtree.LeastCostPathTree.nodeData.
| final Node org.matsim.utils.leastcostpathtree.LeastCostPathTree.getOrigin | ( | ) |
null if no tree was calculated yet. Definition at line 159 of file LeastCostPathTree.java.
References org.matsim.utils.leastcostpathtree.LeastCostPathTree.origin1.
| final double org.matsim.utils.leastcostpathtree.LeastCostPathTree.getDepartureTime | ( | ) |
Definition at line 163 of file LeastCostPathTree.java.
References org.matsim.utils.leastcostpathtree.LeastCostPathTree.dTime.
|
private |
Definition at line 171 of file LeastCostPathTree.java.
References org.matsim.utils.leastcostpathtree.LeastCostPathTree.additionalComputationsHook(), org.matsim.api.core.v01.IdMap< T, V >.get(), org.matsim.utils.leastcostpathtree.LeastCostPathTree.NodeData.getCost(), org.matsim.api.core.v01.Identifiable< T >.getId(), org.matsim.core.router.util.TravelDisutility.getLinkTravelDisutility(), org.matsim.core.router.util.TravelTime.getLinkTravelTime(), org.matsim.api.core.v01.network.Node.getOutLinks(), org.matsim.utils.leastcostpathtree.LeastCostPathTree.NodeData.getTime(), and org.matsim.api.core.v01.IdMap< T, V >.put().
Referenced by org.matsim.utils.leastcostpathtree.LeastCostPathTree.calculate().

|
protected |
Definition at line 195 of file LeastCostPathTree.java.
Referenced by org.matsim.utils.leastcostpathtree.LeastCostPathTree.relaxNode().
|
static |
Definition at line 203 of file LeastCostPathTree.java.
References org.matsim.api.core.v01.TransportMode.car, org.matsim.api.core.v01.Id< T >.create(), org.matsim.core.config.ConfigUtils.createConfig(), org.matsim.core.scenario.ScenarioUtils.createScenario(), org.matsim.api.core.v01.IdMap< T, V >.entrySet(), org.matsim.core.scenario.MutableScenario.getConfig(), org.matsim.utils.leastcostpathtree.LeastCostPathTree.NodeData.getCost(), org.matsim.core.trafficmonitoring.TravelTimeCalculator.getLinkTravelTimes(), org.matsim.core.scenario.MutableScenario.getNetwork(), org.matsim.api.core.v01.network.Network.getNodes(), org.matsim.utils.leastcostpathtree.LeastCostPathTree.NodeData.getPrevNodeId(), org.matsim.utils.leastcostpathtree.LeastCostPathTree.NodeData.getTime(), org.matsim.utils.leastcostpathtree.LeastCostPathTree.LeastCostPathTree(), and org.matsim.core.config.Config.travelTimeCalculator().

|
private |
Definition at line 59 of file LeastCostPathTree.java.
Referenced by org.matsim.utils.leastcostpathtree.LeastCostPathTree.getOrigin().
|
private |
Definition at line 60 of file LeastCostPathTree.java.
Referenced by org.matsim.utils.leastcostpathtree.LeastCostPathTree.getDepartureTime().
|
private |
Definition at line 62 of file LeastCostPathTree.java.
|
private |
Definition at line 63 of file LeastCostPathTree.java.
Definition at line 64 of file LeastCostPathTree.java.
Referenced by org.matsim.utils.leastcostpathtree.LeastCostPathTree.NodeData.getPrevNodeId(), and org.matsim.utils.leastcostpathtree.LeastCostPathTree.getTree().
|
private |
Definition at line 66 of file LeastCostPathTree.java.
|
private |
Definition at line 67 of file LeastCostPathTree.java.
1.8.13