From 6b5deaa6fcdef35b1a48eeb7f523d55d4063c411 Mon Sep 17 00:00:00 2001 From: rakow Date: Mon, 18 Mar 2024 11:23:09 +0100 Subject: [PATCH] use run with defaults correctly --- .../org/matsim/run/policies/RunSpeedReduction.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/matsim/run/policies/RunSpeedReduction.java b/src/main/java/org/matsim/run/policies/RunSpeedReduction.java index 732840f..bfe7ece 100644 --- a/src/main/java/org/matsim/run/policies/RunSpeedReduction.java +++ b/src/main/java/org/matsim/run/policies/RunSpeedReduction.java @@ -12,12 +12,10 @@ private RunSpeedReduction() { } public static void main(String[] args) { - String[] argsForPolicy = new String[]{ - "--slow-speed-area", "/net/ils/matsim-leipzig/input/shp/leipzig_stadt/Leipzig_stadt.shp", - "--slow-speed-relative-change", "0.6", - "--config", "/net/ils/matsim-leipzig/input/v1.3/leipzig-v1.3.1-10pct.config.xml", - "--parking-cost-area", "/net/ils/matsim-leipzig/input/v1.3/parkingCostArea/Bewohnerparken_2020.shp" - }; - MATSimApplication.runWithDefaults(LeipzigScenario.class, argsForPolicy); + MATSimApplication.runWithDefaults(LeipzigScenario.class, args, + "--slow-speed-area", "/net/ils/matsim-leipzig/input/shp/leipzig_stadt/Leipzig_stadt.shp", + "--slow-speed-relative-change", "0.6", + "--config", "/net/ils/matsim-leipzig/input/v1.3/leipzig-v1.3.1-10pct.config.xml", + "--parking-cost-area", "/net/ils/matsim-leipzig/input/v1.3/parkingCostArea/Bewohnerparken_2020.shp"); } }