MATSIM
core
population
VspPlansCleanerModule.java
Go to the documentation of this file.
1
/*
2
* *********************************************************************** *
3
* * project: org.matsim.*
4
* * VspPlansCleanerModule.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.core.population;
24
25
import
org
.
matsim
.
core
.
config
.
groups
.
PlansConfigGroup
;
26
import
org
.
matsim
.
core
.
controler
.
AbstractModule
;
27
28
public
final
class
VspPlansCleanerModule
extends
AbstractModule
{
29
@Override
30
public
void
install
() {
31
PlansConfigGroup
.
ActivityDurationInterpretation
actDurInterpr =
getConfig
().
plans
().
getActivityDurationInterpretation
() ;
32
if
( actDurInterpr !=
PlansConfigGroup
.
ActivityDurationInterpretation
.
minOfDurationAndEndTime
33
||
getConfig
().plans().isRemovingUnneccessaryPlanAttributes() ) {
34
addControlerListenerBinding
().to(VspPlansCleaner.class);
35
}
36
}
37
}
org.matsim.core.config.groups.PlansConfigGroup
Definition:
PlansConfigGroup.java:32
org
org.matsim.core.config
Definition:
CommandLine.java:22
org.matsim.core.population.VspPlansCleanerModule
Definition:
VspPlansCleanerModule.java:28
org.matsim.core.population.VspPlansCleanerModule.install
void install()
Definition:
VspPlansCleanerModule.java:30
org.matsim.core.controler
Definition:
AbstractController.java:20
org.matsim.core
org.matsim.core.controler.AbstractModule.addControlerListenerBinding
final LinkedBindingBuilder< ControlerListener > addControlerListenerBinding()
Definition:
AbstractModule.java:143
org.matsim.core.config.Config.plans
final PlansConfigGroup plans()
Definition:
Config.java:415
org.matsim.core.config.groups.PlansConfigGroup.ActivityDurationInterpretation
Definition:
PlansConfigGroup.java:43
org.matsim.core.controler.AbstractModule
Definition:
AbstractModule.java:76
org.matsim.core.config.groups
Definition:
ChangeLegModeConfigGroup.java:22
org.matsim
org.matsim.core.controler.AbstractModule.getConfig
final Config getConfig()
Definition:
AbstractModule.java:120
org.matsim.core.config.groups.PlansConfigGroup.ActivityDurationInterpretation.minOfDurationAndEndTime
minOfDurationAndEndTime
Definition:
PlansConfigGroup.java:43
org.matsim.core.config.groups.PlansConfigGroup.getActivityDurationInterpretation
PlansConfigGroup.ActivityDurationInterpretation getActivityDurationInterpretation()
Definition:
PlansConfigGroup.java:205
Generated by
1.8.13