MATSIM
TravelDisutility.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * TravelCost.java
4  * *
5  * *********************************************************************** *
6  * *
7  * copyright : (C) 2007 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.util;
22 
25 import org.matsim.vehicles.Vehicle;
26 
40 public interface TravelDisutility {
41 
51  public double getLinkTravelDisutility(final Link link, final double time, final Person person, final Vehicle vehicle);
52  // There was some thought of replacing the "link" argument (resulting in a link travel time lookup) by a "linkTtime" argument (since
53  // the link travel time is known in the router anyways.
54  // I have at least one argument why this will not carry through in an easy way: We also need the link argument for toll, and other
55  // people may want to look up other link attributes and include them into their router, such as slope or road type.
56  // kai, oct'13
57 
62  public double getLinkMinimumTravelDisutility(final Link link);
63 
64 }
double getLinkTravelDisutility(final Link link, final double time, final Person person, final Vehicle vehicle)
double getLinkMinimumTravelDisutility(final Link link)