Skip to content

Commit

Permalink
reorganizign
Browse files Browse the repository at this point in the history
  • Loading branch information
GunnarF authored and GunnarF committed Aug 27, 2020
1 parent f78c0ce commit 2ede73c
Show file tree
Hide file tree
Showing 16 changed files with 3,234 additions and 964 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.function.Consumer;

import org.apache.commons.io.FileUtils;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.Scenario;
Expand Down Expand Up @@ -63,6 +64,7 @@
import org.matsim.core.controler.events.StartupEvent;
import org.matsim.core.controler.listener.BeforeMobsimListener;
import org.matsim.core.controler.listener.StartupListener;
import org.matsim.core.events.EventsManagerImpl;
import org.matsim.core.scenario.ScenarioUtils;
import org.matsim.core.scoring.functions.ScoringParametersForPerson;

Expand Down Expand Up @@ -801,7 +803,8 @@ static void runWithSampersDynamics(final Config config) {

// 2020-08-14: changed while moving to MATSim 12
// OLD: controler.setModules(new ControlerDefaultsWithRoadPricingModule());
controler.setModules(new RoadPricingModule());
// controler.setModules(new RoadPricingModule());
controler.addOverridingModule(new RoadPricingModule());

controler.addOverridingModule(new SampersScoringFunctionModule());

Expand All @@ -817,6 +820,13 @@ public void install() {
}
});

controler.addControlerListener(new StartupListener() {
@Override
public void notifyStartup(StartupEvent event) {
Logger.getLogger(EventsManagerImpl.class).setLevel(Level.OFF);
}
});

controler.run();
}

Expand Down
Loading

0 comments on commit 2ede73c

Please sign in to comment.