|
MATSIM
|

Public Member Functions | |
| CalcAverageTripLength (final Network network) | |
| void | run (final Person person) |
| void | run (final Plan plan) |
| double | getAverageTripLength () |
| final void | run (final Population plans) |
Private Attributes | |
| double | sumLength = 0.0 |
| int | cntTrips = 0 |
| final Network | network |
Calculates the average trip length of all routes in a plan. The trip length is the sum of the length of all links, including the route's end link, but not including the route's start link.
This class works only for NetworkRoutes and will likely fail for legs with other types of Routes.
Definition at line 44 of file CalcAverageTripLength.java.
| org.matsim.analysis.CalcAverageTripLength.CalcAverageTripLength | ( | final Network | network | ) |
Definition at line 50 of file CalcAverageTripLength.java.
References org.matsim.analysis.CalcAverageTripLength.network.
| void org.matsim.analysis.CalcAverageTripLength.run | ( | final Person | person | ) |
Implements org.matsim.core.population.algorithms.PersonAlgorithm.
Definition at line 55 of file CalcAverageTripLength.java.
References org.matsim.api.core.v01.population.HasPlansAndId< T extends BasicPlan, I >.getSelectedPlan().

| void org.matsim.analysis.CalcAverageTripLength.run | ( | final Plan | plan | ) |
Implements org.matsim.core.population.algorithms.PlanAlgorithm.
Definition at line 60 of file CalcAverageTripLength.java.
References org.matsim.core.population.routes.RouteUtils.calcDistanceExcludingStartEndLink(), org.matsim.api.core.v01.population.Route.getEndLinkId(), org.matsim.api.core.v01.network.Network.getLinks(), org.matsim.api.core.v01.population.Plan.getPlanElements(), org.matsim.api.core.v01.population.Leg.getRoute(), and org.matsim.api.core.v01.population.Route.getStartLinkId().

| double org.matsim.analysis.CalcAverageTripLength.getAverageTripLength | ( | ) |
Definition at line 78 of file CalcAverageTripLength.java.
|
inherited |
Definition at line 34 of file AbstractPersonAlgorithm.java.
References org.matsim.api.core.v01.population.Population.getPersons(), org.matsim.core.utils.misc.Counter.incCounter(), and org.matsim.core.utils.misc.Counter.printCounter().

|
private |
Definition at line 46 of file CalcAverageTripLength.java.
|
private |
Definition at line 47 of file CalcAverageTripLength.java.
|
private |
Definition at line 48 of file CalcAverageTripLength.java.
Referenced by org.matsim.analysis.CalcAverageTripLength.CalcAverageTripLength().
1.8.13