MATSIM
RunMatsim.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * *********************************************************************** *
4  * *
5  * copyright : (C) 2007 by the members listed in the COPYING, *
6  * LICENSE and WARRANTY file. *
7  * email : info at matsim dot org *
8  * *
9  * *********************************************************************** *
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * See also COPYING, LICENSE and WARRANTY file *
16  * *
17  * *********************************************************************** */
18 
19 package org.matsim.run;
20 
21 import org.matsim.api.core.v01.Scenario;
23 
24 
32 public class RunMatsim {
33 
35 
36  public RunMatsim(final String[] args) {
37  this.controler = new org.matsim.core.controler.Controler(args);
38  }
39 
40  public RunMatsim(final String configFilename) {
41  this.controler = new org.matsim.core.controler.Controler(configFilename);
42  }
43 
44  public void setOverwriteFiles(final boolean overwriteFiles) {
45  this.controler.getConfig().controller().setOverwriteFileSetting(
46  overwriteFiles ?
49  }
50 
51  public Scenario getScenario() {
52  return this.controler.getScenario() ;
53  }
54 
55  public void run() {
56  this.controler.run();
57  }
58 
59  public static void main(String[] args) {
60  new RunMatsim(args).run();
61  }
62 }
static void main(String[] args)
Definition: RunMatsim.java:59
final org.matsim.core.controler.Controler controler
Definition: RunMatsim.java:34
void setOverwriteFiles(final boolean overwriteFiles)
Definition: RunMatsim.java:44
RunMatsim(final String configFilename)
Definition: RunMatsim.java:40
RunMatsim(final String[] args)
Definition: RunMatsim.java:36