Skip to content

Commit

Permalink
add networkMode to defaultVehicleType (#3560)
Browse files Browse the repository at this point in the history
* add networkMode

* use enum for mode selection
  • Loading branch information
rewertvsp authored Nov 12, 2024
1 parent 504fb7e commit cc8d18d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion matsim/src/main/java/org/matsim/vehicles/VehicleUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
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;
import org.matsim.api.core.v01.population.Person;
import org.matsim.core.gbl.Gbl;
Expand Down Expand Up @@ -81,7 +82,7 @@ public static VehicleType createDefaultVehicleType() {
.createVehicleType(Id.create(DEFAULT_VEHICLE_TYPE_ID, VehicleType.class));

defaultVehicleType.getCapacity().setSeats(4);

defaultVehicleType.setNetworkMode(TransportMode.car);
return defaultVehicleType;
}

Expand Down

0 comments on commit cc8d18d

Please sign in to comment.