Skip to content

Commit

Permalink
Merge branch 'master' into drtServices
Browse files Browse the repository at this point in the history
  • Loading branch information
steffenaxer committed Sep 16, 2024
2 parents 707d80f + 22d8b7e commit a8042e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public PreplannedDrtOptimizer(DrtConfigGroup drtCfg, PreplannedSchedules preplan
TravelTime travelTime, TravelDisutility travelDisutility, MobsimTimer timer, DrtTaskFactory taskFactory,
EventsManager eventsManager, Fleet fleet, ScheduleTimingUpdater scheduleTimingUpdater) {
Preconditions.checkArgument(
fleet.getVehicles().keySet().equals(preplannedSchedules.vehicleToPreplannedStops.keySet()),
fleet.getVehicles().keySet().containsAll(preplannedSchedules.vehicleToPreplannedStops.keySet()),
"Some schedules are preplanned for vehicles outside the fleet");

this.mode = drtCfg.getMode();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

package org.matsim.contrib.zone.skims;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.PositiveOrZero;
import org.matsim.contrib.common.util.ReflectiveConfigGroupWithConfigurableParameterSets;
import org.matsim.contrib.common.zones.ZoneSystemParams;
Expand Down Expand Up @@ -55,6 +56,7 @@ public class DvrpTravelTimeMatrixParams extends ReflectiveConfigGroupWithConfigu
+ " The unit is seconds. Default value is 0 s (for backward compatibility).")
@PositiveOrZero
public double maxNeighborTravelTime = 0; //[s]
@NotNull
private ZoneSystemParams zoneSystemParams;


Expand Down Expand Up @@ -101,6 +103,11 @@ public void handleAddUnknownParam(String paramName, String value) {
}

public ZoneSystemParams getZoneSystemParams() {
if(this.zoneSystemParams == null) {
SquareGridZoneSystemParams squareGridZoneSystemParams = new SquareGridZoneSystemParams();
squareGridZoneSystemParams.cellSize = 200;
this.zoneSystemParams = squareGridZoneSystemParams;
}
return zoneSystemParams;
}
}

0 comments on commit a8042e5

Please sign in to comment.