Skip to content

Commit

Permalink
comment out vehicles definition
Browse files Browse the repository at this point in the history
  • Loading branch information
GregorRyb committed Feb 9, 2025
1 parent ba2136f commit af22f73
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import org.apache.commons.compress.utils.Sets;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.Scenario;
import org.matsim.api.core.v01.TransportMode;
import org.matsim.api.core.v01.network.Link;
Expand All @@ -19,8 +18,6 @@
import org.matsim.core.network.algorithms.MultimodalNetworkCleaner;
import org.matsim.core.population.PopulationUtils;
import org.matsim.core.replanning.strategies.DefaultPlanStrategiesModule;
import org.matsim.vehicles.VehicleType;
import org.matsim.vehicles.VehicleUtils;
import picocli.CommandLine;

import java.util.Collection;
Expand Down Expand Up @@ -111,15 +108,15 @@ protected void prepareScenario(Scenario scenario) {

// we need to define a vehicle type if we want to route bikes on the network
if (bicycleHandling == BicycleHandling.onNetworkWithStandardMatsim || bicycleHandling == BicycleHandling.onNetworkWithBicycleContrib) {
Id<VehicleType> typeId = Id.create(TransportMode.bike, VehicleType.class);
/*Id<VehicleType> typeId = Id.create(TransportMode.bike, VehicleType.class);
VehicleType bikeVehicle = VehicleUtils.createVehicleType(typeId);
// I took these values from: https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/de/leipzig/leipzig-v1.3/input/leipzig-v1.3-vehicle-types.xml
bikeVehicle.setMaximumVelocity(4.16);
bikeVehicle.setLength(2.0);
bikeVehicle.setWidth(1.0);
bikeVehicle.setNetworkMode(TransportMode.bike);
bikeVehicle.setPcuEquivalents(0.2);
scenario.getVehicles().addVehicleType(bikeVehicle);
scenario.getVehicles().addVehicleType(bikeVehicle); */
}

if (bicycleHandling == BicycleHandling.onNetworkWithStandardMatsim || bicycleHandling == BicycleHandling.onNetworkWithBicycleContrib) {
Expand Down

0 comments on commit af22f73

Please sign in to comment.