From 849f0149e5768df68d29c0462c9fe3a8a2af1aee Mon Sep 17 00:00:00 2001 From: rakow Date: Mon, 23 Oct 2023 14:41:13 +0200 Subject: [PATCH] update config, small cleanup --- input/v1.2/leipzig-v1.2-25pct.config.xml | 55 ++-- .../leipzig-v1.2-25pct_prices2021.config.xml | 311 ------------------ input/v1.2/leipzig-v1.2-drt.config.xml | 114 +++++++ .../org/matsim/run/RunLeipzigScenario.java | 5 +- 4 files changed, 143 insertions(+), 342 deletions(-) delete mode 100644 input/v1.2/leipzig-v1.2-25pct_prices2021.config.xml create mode 100644 input/v1.2/leipzig-v1.2-drt.config.xml diff --git a/input/v1.2/leipzig-v1.2-25pct.config.xml b/input/v1.2/leipzig-v1.2-25pct.config.xml index 3125f7bd..db3dd3de 100644 --- a/input/v1.2/leipzig-v1.2-25pct.config.xml +++ b/input/v1.2/leipzig-v1.2-25pct.config.xml @@ -45,9 +45,9 @@ - - - + + + @@ -61,12 +61,11 @@ - - - - - - + + + + + @@ -75,24 +74,24 @@ - + - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -115,7 +114,7 @@ - + @@ -150,8 +149,8 @@ - - + + @@ -162,7 +161,7 @@ - + diff --git a/input/v1.2/leipzig-v1.2-25pct_prices2021.config.xml b/input/v1.2/leipzig-v1.2-25pct_prices2021.config.xml deleted file mode 100644 index 0bfe9fcc..00000000 --- a/input/v1.2/leipzig-v1.2-25pct_prices2021.config.xml +++ /dev/null @@ -1,311 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/input/v1.2/leipzig-v1.2-drt.config.xml b/input/v1.2/leipzig-v1.2-drt.config.xml new file mode 100644 index 00000000..f003057a --- /dev/null +++ b/input/v1.2/leipzig-v1.2-drt.config.xml @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/java/org/matsim/run/RunLeipzigScenario.java b/src/main/java/org/matsim/run/RunLeipzigScenario.java index 76daa053..f3583be0 100644 --- a/src/main/java/org/matsim/run/RunLeipzigScenario.java +++ b/src/main/java/org/matsim/run/RunLeipzigScenario.java @@ -203,7 +203,7 @@ protected Config prepareConfig(Config config) { // We need to use coordinates only, otherwise subtour constraints will be violated by the parking re-routing, because it may change link/facility ids config.facilities().setFacilitiesSource(FacilitiesConfigGroup.FacilitiesSource.none); - switch ((bike)) { + switch (bike) { case onNetworkWithStandardMatsim -> { // bike is routed on the network per the xml config. @@ -259,7 +259,7 @@ protected Config prepareConfig(Config config) { } } - default -> throw new IllegalStateException("Unexpected value: " + (bike)); + default -> throw new IllegalStateException("Unexpected value: " + bike); } if (networkOpt.hasParkingCostArea()) { @@ -296,7 +296,6 @@ protected void prepareControler(Controler controler) { @Override public void install() { install(new LeipzigPtFareModule()); - install(new SwissRailRaptorModule()); addTravelTimeBinding(TransportMode.ride).to(networkTravelTime()); addTravelDisutilityFactoryBinding(TransportMode.ride).to(carTravelDisutilityFactoryKey());