From 5d02569300d45c304f3c20477b92e437b446ff8e Mon Sep 17 00:00:00 2001 From: Jakob Rehmann Date: Wed, 9 Oct 2024 13:26:10 +0200 Subject: [PATCH] added potential plug-in points for DRT Estimator as comments --- .../java/org/matsim/run/RunKelheimScenario.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main/java/org/matsim/run/RunKelheimScenario.java b/src/main/java/org/matsim/run/RunKelheimScenario.java index 3fb42fa..257f61a 100644 --- a/src/main/java/org/matsim/run/RunKelheimScenario.java +++ b/src/main/java/org/matsim/run/RunKelheimScenario.java @@ -403,6 +403,21 @@ protected void prepareControler(Controler controler) { Config config = controler.getConfig(); Network network = controler.getScenario().getNetwork(); +// +// controler.addOverridingModule(new AbstractModule() { +// @Override +// public void install() { +// DrtEstimatorModule.bindEstimator(binder(), drtConfigGroup.mode).toInstance( +// new DirectTripBasedDrtEstimator.Builder() +// .setWaitingTimeEstimator(new ConstantWaitingTimeEstimator(300)) +// .setWaitingTimeDistributionGenerator(new NormalDistributionGenerator(1, 0.4)) +// .setRideDurationEstimator(new ConstantRideDurationEstimator(1.25, 300)) +// .setRideDurationDistributionGenerator(new NormalDistributionGenerator(2, 0.3)) +// .build() +// ); +// } +// }); + controler.addOverridingModule(new AbstractModule() { @Override public void install() {