|
MATSIM
|

Public Member Functions | |
| ReconstructingUmlaufBuilder (Scenario scenario) | |
| Collection< Umlauf > | build () |
Private Member Functions | |
| void | createUmlaeufe () |
| Id< Umlauf > | getUmlaufIdForVehicleId (Id< Vehicle > vehId) |
| Id< Umlauf > | createUmlaufIdFromVehicle (Vehicle vehicle) |
| void | createEmptyUmlaeufe () |
| void | createUmlaufStuecke () |
| void | printStatus (int cnt) |
Private Attributes | |
| final Collection< TransitLine > | transitLines |
| final Vehicles | vehicles |
| Map< Id< Umlauf >, Umlauf > | umlaeufe = null |
| ArrayList< UmlaufStueck > | umlaufStuecke |
| final UmlaufInterpolator | umlaufInterpolator |
| final Map< Id< Vehicle >, Id< Umlauf > > | umlaufIdsByVehicleId |
Static Private Attributes | |
| static final Logger | log = LogManager.getLogger(ReconstructingUmlaufBuilder.class) |
| static final Comparator< UmlaufStueck > | departureTimeComparator |
Generates Umlaeufe (= vehicle runs) from the transit schedule. Will do something interesting only if Departures in the org.matsim.pt.transitSchedule.api.TransitSchedule have vehicle ids, and the same vehicle is used for multiple departures.
Definition at line 47 of file ReconstructingUmlaufBuilder.java.
| org.matsim.pt.ReconstructingUmlaufBuilder.ReconstructingUmlaufBuilder | ( | Scenario | scenario | ) |
Definition at line 66 of file ReconstructingUmlaufBuilder.java.
References org.matsim.api.core.v01.Scenario.getConfig(), org.matsim.api.core.v01.Scenario.getNetwork(), org.matsim.pt.transitSchedule.api.TransitSchedule.getTransitLines(), org.matsim.api.core.v01.Scenario.getTransitSchedule(), org.matsim.api.core.v01.Scenario.getTransitVehicles(), and org.matsim.core.config.Config.scoring().

| Collection<Umlauf> org.matsim.pt.ReconstructingUmlaufBuilder.build | ( | ) |
Implements org.matsim.pt.UmlaufBuilder.
Definition at line 76 of file ReconstructingUmlaufBuilder.java.
References org.matsim.pt.ReconstructingUmlaufBuilder.createEmptyUmlaeufe(), org.matsim.pt.ReconstructingUmlaufBuilder.createUmlaeufe(), and org.matsim.pt.ReconstructingUmlaufBuilder.createUmlaufStuecke().

|
private |
(connect multiple umlautStuecke to one umlauf. will do anything interesting only if same vehicle is shared across multiple departures. vehicle id can be set for departures in transit schedule. but usually isn't)
Definition at line 88 of file ReconstructingUmlaufBuilder.java.
References org.matsim.pt.ReconstructingUmlaufBuilder.getUmlaufIdForVehicleId().
Referenced by org.matsim.pt.ReconstructingUmlaufBuilder.build().

|
private |
Definition at line 105 of file ReconstructingUmlaufBuilder.java.
Referenced by org.matsim.pt.ReconstructingUmlaufBuilder.createUmlaeufe().
|
private |
Definition at line 109 of file ReconstructingUmlaufBuilder.java.
References org.matsim.api.core.v01.Id< T >.create(), org.matsim.api.core.v01.Identifiable< T >.getId(), org.matsim.vehicles.VehicleType.getId(), and org.matsim.vehicles.Vehicle.getType().
Referenced by org.matsim.pt.ReconstructingUmlaufBuilder.createEmptyUmlaeufe().

|
private |
(create the data structures. each transit vehicles gets an empty umlauf)
Definition at line 118 of file ReconstructingUmlaufBuilder.java.
References org.matsim.pt.ReconstructingUmlaufBuilder.createUmlaufIdFromVehicle(), org.matsim.pt.UmlaufImpl.getId(), org.matsim.vehicles.Vehicles.getVehicles(), and org.matsim.pt.UmlaufImpl.setVehicleId().
Referenced by org.matsim.pt.ReconstructingUmlaufBuilder.build().

|
private |
(one for each "departure" in the transit schedule. also sort them by departure time)
Definition at line 129 of file ReconstructingUmlaufBuilder.java.
References org.matsim.core.gbl.Gbl.assertNotNull(), and org.matsim.pt.ReconstructingUmlaufBuilder.printStatus().
Referenced by org.matsim.pt.ReconstructingUmlaufBuilder.build().

|
private |
Definition at line 148 of file ReconstructingUmlaufBuilder.java.
Referenced by org.matsim.pt.ReconstructingUmlaufBuilder.createUmlaufStuecke().
|
staticprivate |
Definition at line 48 of file ReconstructingUmlaufBuilder.java.
|
staticprivate |
Definition at line 50 of file ReconstructingUmlaufBuilder.java.
|
private |
Definition at line 59 of file ReconstructingUmlaufBuilder.java.
|
private |
Definition at line 60 of file ReconstructingUmlaufBuilder.java.
Definition at line 61 of file ReconstructingUmlaufBuilder.java.
|
private |
Definition at line 62 of file ReconstructingUmlaufBuilder.java.
|
private |
Definition at line 63 of file ReconstructingUmlaufBuilder.java.
|
private |
Definition at line 64 of file ReconstructingUmlaufBuilder.java.
1.8.13