MATSIM
RunSwissRailRaptorExample.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.* *
3  *
4  * *
5  * *********************************************************************** *
6  * *
7  * copyright : (C) 2023 by the members listed in the COPYING, *
8  * LICENSE and WARRANTY file. *
9  * email : info at matsim dot org *
10  * *
11  * *********************************************************************** *
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * See also COPYING, LICENSE and WARRANTY file *
18  * *
19  * *********************************************************************** */
20 package ch.sbb.matsim;
21 
23 import org.matsim.api.core.v01.Scenario;
24 import org.matsim.core.config.Config;
28 
36 
37  public static void main(String[] args) {
38  String configFilename = args[0];
39  Config config = ConfigUtils.loadConfig(configFilename);
40 
41  Scenario scenario = ScenarioUtils.loadScenario(config);
42  Controler controler = new Controler(scenario);
43 
44  // This is the important line:
46 
47  controler.run();
48  }
49 
50 }
final Controler addOverridingModule(AbstractModule abstractModule)
Definition: Controler.java:473
static Config loadConfig(final String filename, ConfigGroup... customModules)
static Scenario loadScenario(final Config config)