MATSIM
Public Member Functions | List of all members
org.matsim.pt.router.TransitTravelDisutility Interface Reference
Inheritance diagram for org.matsim.pt.router.TransitTravelDisutility:
Inheritance graph
[legend]

Public Member Functions

double getLinkTravelDisutility (final Link link, final double time, final Person person, final Vehicle vehicle, final CustomDataManager dataManager)
 
double getWalkTravelTime (Person person, Coord coord, Coord toCoord)
 
double getWalkTravelDisutility (Person person, Coord coord, Coord toCoord)
 

Detailed Description

Author
mrieser / senozon

Definition at line 30 of file TransitTravelDisutility.java.

Member Function Documentation

◆ getLinkTravelDisutility()

double org.matsim.pt.router.TransitTravelDisutility.getLinkTravelDisutility ( final Link  link,
final double  time,
final Person  person,
final Vehicle  vehicle,
final CustomDataManager  dataManager 
)

Returns the disutility to travel on the specified link at the specified time.

Parameters
linkThe link for which the travel disutility is calculated.
timeThe departure time (in seconds since 00:00) at the beginning of the link for which the disutility is calculated.
personThe person that wants to travel along the link. Note that this parameter can be null!
vehicleThe vehicle with which the person wants to travel along the link. Note that this parameter can be null!
dataManagerA helper class to enable the cost calculator store arbitrary data during one routing request.
Returns
The disutility to travel over the link link, departing at time time.

Implemented in org.matsim.pt.router.TransitRouterNetworkTravelTimeAndDisutility.

Referenced by org.matsim.pt.router.TransitLeastCostPathTree.addToPendingNodes().

◆ getWalkTravelTime()

double org.matsim.pt.router.TransitTravelDisutility.getWalkTravelTime ( Person  person,
Coord  coord,
Coord  toCoord 
)

This is used for walking to and from the nearest transit stop from the start and end location, as well as for the "direct" walk from start to finish without using a pt line at all. It is not used for transfer links (these are handled by the transitTravelDisutility).

Implemented in org.matsim.pt.router.TransitRouterNetworkTravelTimeAndDisutility.

Referenced by org.matsim.pt.router.AbstractTransitRouter.getTransferTime(), and org.matsim.pt.router.AbstractTransitRouter.getWalkTime().

◆ getWalkTravelDisutility()

double org.matsim.pt.router.TransitTravelDisutility.getWalkTravelDisutility ( Person  person,
Coord  coord,
Coord  toCoord 
)

The documentation for this interface was generated from the following file: