Skip to content

Commit

Permalink
add router binding for complex request unscheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuehnel committed Jun 27, 2024
1 parent 0ec23f8 commit 0282b8a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
import org.matsim.core.api.experimental.events.EventsManager;
import org.matsim.core.mobsim.framework.MobsimTimer;
import org.matsim.core.mobsim.qsim.QSim;
import org.matsim.core.router.speedy.SpeedyALTFactory;
import org.matsim.core.router.util.LeastCostPathCalculator;
import org.matsim.core.router.util.TravelDisutility;
import org.matsim.core.router.util.TravelTime;

public class PrebookingModeQSimModule extends AbstractDvrpModeQSimModule {
Expand Down Expand Up @@ -97,6 +99,10 @@ protected void configureQSim() {
bindModal(RequestUnscheduler.class).to(modalKey(SimpleRequestUnscheduler.class));
break;
case Routing:
bindModal(LeastCostPathCalculator.class).toProvider(modalProvider(getter ->
new SpeedyALTFactory().createPathCalculator(getter.getModal(Network.class),
getter.getModal(TravelDisutility.class), getter.getModal(TravelTime.class)
)));
bindModal(RequestUnscheduler.class).to(modalKey(ComplexRequestUnscheduler.class));
break;
default:
Expand Down

0 comments on commit 0282b8a

Please sign in to comment.