MATSIM
pt
router
TransitRouterModule.java
Go to the documentation of this file.
1
/*
2
* *********************************************************************** *
3
* * project: org.matsim.*
4
* * TransitRouterModule.java
5
* * *
6
* * *********************************************************************** *
7
* * *
8
* * copyright : (C) 2015 by the members listed in the COPYING, *
9
* * LICENSE and WARRANTY file. *
10
* * email : info at matsim dot org *
11
* * *
12
* * *********************************************************************** *
13
* * *
14
* * This program is free software; you can redistribute it and/or modify *
15
* * it under the terms of the GNU General Public License as published by *
16
* * the Free Software Foundation; either version 2 of the License, or *
17
* * (at your option) any later version. *
18
* * See also COPYING, LICENSE and WARRANTY file *
19
* * *
20
* * ***********************************************************************
21
*/
22
23
package
org.matsim.pt.router;
24
25
import
ch
.
sbb
.
matsim
.
routing
.
pt
.
raptor
.
SwissRailRaptorModule
;
26
import
org
.
matsim
.
core
.
controler
.
AbstractModule
;
27
28
public
class
TransitRouterModule
extends
AbstractModule
{
29
30
@Override
31
public
void
install
() {
32
if
(
getConfig
().transit().isUseTransit()) {
33
switch
(
getConfig
().transit().getRoutingAlgorithmType()) {
34
case
DijkstraBased:
35
throw
new
RuntimeException
(
"'DijkstraBased' is no longer supported as a transit routing algorithm. Use 'SwissRailRaptor' instead."
);
36
case
SwissRailRaptor:
37
install
(
new
SwissRailRaptorModule
());
38
break
;
39
default
:
40
throw
new
RuntimeException
(
"Unsupported transit routing algorithm type: "
+
getConfig
().transit().getRoutingAlgorithmType().name());
41
}
42
}
43
}
44
45
}
ch.sbb.matsim.routing.pt
org
RuntimeException
ch.sbb.matsim.routing.pt.raptor.SwissRailRaptorModule
Definition:
SwissRailRaptorModule.java:31
ch.sbb.matsim.routing.pt.raptor
Definition:
CapacityDependentInVehicleCostCalculator.java:20
ch
org.matsim.core.controler
Definition:
AbstractController.java:20
org.matsim.core
org.matsim.pt.router.TransitRouterModule
Definition:
TransitRouterModule.java:28
ch.sbb.matsim
org.matsim.pt.router.TransitRouterModule.install
void install()
Definition:
TransitRouterModule.java:31
ch.sbb
ch.sbb.matsim.routing
org.matsim.core.controler.AbstractModule
Definition:
AbstractModule.java:76
org.matsim
org.matsim.core.controler.AbstractModule.getConfig
final Config getConfig()
Definition:
AbstractModule.java:120
Generated by
1.8.13