MATSIM
ch
sbb
matsim
routing
pt
raptor
DefaultRaptorInVehicleCostCalculator.java
Go to the documentation of this file.
1
/* *********************************************************************** *
2
* project: org.matsim.* *
3
*
4
* *
5
* *********************************************************************** *
6
* *
7
* copyright : (C) 2023 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
package
ch.sbb.matsim.routing.pt.raptor;
21
22
import
org
.
matsim
.
api
.
core
.
v01
.
population
.
Person
;
23
import
org
.
matsim
.
vehicles
.
Vehicle
;
24
28
public
class
DefaultRaptorInVehicleCostCalculator
implements
RaptorInVehicleCostCalculator
{
29
30
@Override
31
public
double
getInVehicleCost
(
double
inVehicleTime,
double
marginalUtility_utl_s,
Person
person,
Vehicle
vehicle,
RaptorParameters
parameters,
RouteSegmentIterator
iterator) {
32
return
inVehicleTime * -marginalUtility_utl_s;
33
}
34
35
}
org.matsim.api.core.v01.population
Definition:
Activity.java:21
ch.sbb.matsim.routing.pt.raptor.RaptorParameters
Definition:
RaptorParameters.java:31
org
org.matsim.api
ch.sbb.matsim.routing.pt.raptor.RaptorInVehicleCostCalculator
Definition:
RaptorInVehicleCostCalculator.java:28
org.matsim.vehicles.Vehicle
Definition:
Vehicle.java:28
ch.sbb.matsim.routing.pt.raptor.DefaultRaptorInVehicleCostCalculator
Definition:
DefaultRaptorInVehicleCostCalculator.java:28
ch.sbb.matsim.routing.pt.raptor.DefaultRaptorInVehicleCostCalculator.getInVehicleCost
double getInVehicleCost(double inVehicleTime, double marginalUtility_utl_s, Person person, Vehicle vehicle, RaptorParameters parameters, RouteSegmentIterator iterator)
Definition:
DefaultRaptorInVehicleCostCalculator.java:31
org.matsim.vehicles
Definition:
CostInformation.java:19
org.matsim.api.core
org.matsim
org.matsim.api.core.v01.population.Person
Definition:
Person.java:28
org.matsim.api.core.v01
Definition:
BasicLocation.java:20
ch.sbb.matsim.routing.pt.raptor.RaptorInVehicleCostCalculator.RouteSegmentIterator
Definition:
RaptorInVehicleCostCalculator.java:32
Generated by
1.8.13