From 7b28399de71c145ab22f1397729b4a07b0f257a9 Mon Sep 17 00:00:00 2001 From: GregorRyb Date: Tue, 27 Aug 2024 18:35:09 +0200 Subject: [PATCH] remove unnecessary stuff --- src/main/java/org/matsim/run/LeipzigScenario.java | 6 ++---- src/main/java/org/matsim/run/prepare/NetworkOptions.java | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/matsim/run/LeipzigScenario.java b/src/main/java/org/matsim/run/LeipzigScenario.java index d6b3a6d..e7481bf 100644 --- a/src/main/java/org/matsim/run/LeipzigScenario.java +++ b/src/main/java/org/matsim/run/LeipzigScenario.java @@ -41,6 +41,8 @@ import org.matsim.simwrapper.SimWrapperConfigGroup; import org.matsim.simwrapper.SimWrapperModule; import org.matsim.smallScaleCommercialTrafficGeneration.GenerateSmallScaleCommercialTrafficDemand; +import org.matsim.vehicles.VehicleType; +import org.matsim.vehicles.VehicleUtils; import picocli.CommandLine; import playground.vsp.scoring.IncomeDependentUtilityOfMoneyPersonScoringParameters; import playground.vsp.simpleParkingCostHandler.ParkingCostConfigGroup; @@ -335,10 +337,6 @@ public void install() { controler.addOverridingModule(new BicycleModule()); } - if (networkOpt.hasEBikeCity()) { - controler.getScenario().getVehicles().getVehicleTypes().get(TransportMode.bike).setMaximumVelocity(8.32); - - } } /** diff --git a/src/main/java/org/matsim/run/prepare/NetworkOptions.java b/src/main/java/org/matsim/run/prepare/NetworkOptions.java index 90e7297..f481921 100644 --- a/src/main/java/org/matsim/run/prepare/NetworkOptions.java +++ b/src/main/java/org/matsim/run/prepare/NetworkOptions.java @@ -35,10 +35,8 @@ public class NetworkOptions { private Path slowSpeedArea; @CommandLine.Option(names = "--slow-speed-relative-change", description = "provide a value that is bigger than 0.0 and smaller than 1.0") private Double slowSpeedRelativeChange; - @CommandLine.Option(names = "--slow-speed-relative-change", description = "provide a value that is bigger than 0.0 and smaller than 1.0") - private Path eBikeCity; @CommandLine.Option(names = "--eBikeCity", description = "simplified e-bike city") - + private Path eBikeCity; public boolean hasEBikeCity() {