MATSIM
StandardQSimComponentConfigurator.java
Go to the documentation of this file.
1 
2 /* *********************************************************************** *
3  * project: org.matsim.*
4  * StandardQSimComponentConfigurator.java
5  * *
6  * *********************************************************************** *
7  * *
8  * copyright : (C) 2019 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  package org.matsim.core.mobsim.qsim.components;
23 
24 import org.matsim.core.config.Config;
27 
29  final private Config config;
30 
32  this.config = config;
33  }
34 
35  @Override
36  public void configure(QSimComponentsConfig components) {
37 
39  // (clears all the components, and puts in those components defined as defaults in the
40  // QSimComponentsConfigGroup)
41 
42  new QSimComponentsFromConfigConfigurator(config).configure(components);
43  // (IF a qsimComponentsConfigGroup was added by the user, the components are cleared
44  // again, and instead the components from the qsimComponentsConfigGroup are installed)
45 
46  new TransitQSimComponentsConfigurator(config).configure(components);
47 
49 
50  }
51 
52 }