MATSIM
DefaultMobsimModule.java
Go to the documentation of this file.
1 /*
2  * *********************************************************************** *
3  * * project: org.matsim.*
4  * * DefaultMobsimModule.java
5  * * *
6  * * *********************************************************************** *
7  * * *
8  * * copyright : (C) 2015 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.mobsim;
24 
30 
31 public class DefaultMobsimModule extends AbstractModule {
32  @Override
33  public void install() {
34  if (getConfig().controller().getMobsim().equals(ControllerConfigGroup.MobsimType.qsim.toString())) {
35  install(new QSimModule());
36 // bind( RelativePositionOfEntryExitOnLink.class ).toInstance( () -> 1. );
37  } else if (getConfig().controller().getMobsim().equals("JDEQSim")) {
38  throw new IllegalArgumentException("JDEQSim is no longer supported as a mobsim. / March 2025");
39  } else if (getConfig().controller().getMobsim().equals(ControllerConfigGroup.MobsimType.hermes.toString())) {
40  bindMobsim().toProvider(HermesProvider.class);
41  }
42 
44  }
45 // public interface RelativePositionOfEntryExitOnLink{
46 // double get() ;
47 // }
48 }
final com.google.inject.binder.LinkedBindingBuilder< Mobsim > bindMobsim()