-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update to MATSim 16 * remove group requests * remove prebooking * update config format * remove code replicating DrtOfferAcceptor * timing wip * add test for deterministic travel times * integrate passenger stop duration and prebooking * fix stop timing with shifts * remove WaitForStop task
- Loading branch information
Showing
54 changed files
with
1,978 additions
and
2,161 deletions.
There are no files selected for viewing
879 changes: 168 additions & 711 deletions
879
core/src/main/java/org/matsim/alonso_mora/AlonsoMoraConfigGroup.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
135 changes: 74 additions & 61 deletions
135
core/src/main/java/org/matsim/alonso_mora/AlonsoMoraModeQSimModule.java
Large diffs are not rendered by default.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
core/src/main/java/org/matsim/alonso_mora/AlonsoMoraOfferAcceptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.matsim.alonso_mora; | ||
|
||
import java.util.Optional; | ||
|
||
import org.matsim.contrib.drt.passenger.AcceptedDrtRequest; | ||
import org.matsim.contrib.drt.passenger.DrtOfferAcceptor; | ||
import org.matsim.contrib.drt.passenger.DrtRequest; | ||
|
||
public class AlonsoMoraOfferAcceptor implements DrtOfferAcceptor { | ||
@Override | ||
public Optional<AcceptedDrtRequest> acceptDrtOffer(DrtRequest request, double departureTime, double arrivalTime) { | ||
return Optional.of(AcceptedDrtRequest.newBuilder() // | ||
.request(request) // | ||
.earliestStartTime(request.getEarliestStartTime()) // | ||
.latestArrivalTime(request.getLatestArrivalTime()) // | ||
.latestStartTime(departureTime) // | ||
.build()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 0 additions & 53 deletions
53
core/src/main/java/org/matsim/alonso_mora/AlonsoMoraSubmissionEvent.java
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
core/src/main/java/org/matsim/alonso_mora/AlonsoMoraSubmissionEventHandler.java
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
core/src/main/java/org/matsim/alonso_mora/AlonsoMoraUnscheduler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.matsim.alonso_mora; | ||
|
||
import org.matsim.api.core.v01.Id; | ||
import org.matsim.contrib.drt.prebooking.unscheduler.RequestUnscheduler; | ||
import org.matsim.contrib.dvrp.fleet.DvrpVehicle; | ||
import org.matsim.contrib.dvrp.optimizer.Request; | ||
|
||
public class AlonsoMoraUnscheduler implements RequestUnscheduler { | ||
@Override | ||
public void unscheduleRequest(double now, Id<DvrpVehicle> vehicleId, Id<Request> requestId) { | ||
// in AM we do not unschedule any request as the schedules are rebuilt in every | ||
// step | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
core/src/main/java/org/matsim/alonso_mora/RequestAggregationHandler.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.