MATSIM
pt
counts
PtCountsModule.java
Go to the documentation of this file.
1
/*
2
* *********************************************************************** *
3
* * project: org.matsim.*
4
* * PtCountsModule.java
5
* * *
6
* * *********************************************************************** *
7
* * *
8
* * copyright : (C) 2014 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.counts;
24
25
import
org
.
matsim
.
core
.
controler
.
AbstractModule
;
26
27
public
class
PtCountsModule
extends
AbstractModule
{
28
@Override
29
public
void
install
() {
30
if
(
getConfig
().transit().isUseTransit()) {
31
if
(
getConfig
().ptCounts().getAlightCountsFileName() != null) {
32
// only works when all three files are defined! kai, oct'10
33
addControlerListenerBinding
().to(
PtCountControlerListener
.class);
34
}
35
}
36
}
37
}
org
org.matsim.pt.counts.PtCountsModule
Definition:
PtCountsModule.java:27
org.matsim.core.controler
Definition:
AbstractController.java:20
org.matsim.core
org.matsim.core.controler.AbstractModule.addControlerListenerBinding
final LinkedBindingBuilder< ControlerListener > addControlerListenerBinding()
Definition:
AbstractModule.java:155
org.matsim.pt.counts.PtCountsModule.install
void install()
Definition:
PtCountsModule.java:29
org.matsim.pt.counts.PtCountControlerListener
Definition:
PtCountControlerListener.java:54
org.matsim.core.controler.AbstractModule
Definition:
AbstractModule.java:76
org.matsim
org.matsim.core.controler.AbstractModule.getConfig
final Config getConfig()
Definition:
AbstractModule.java:132
Generated by
1.8.13