Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(drt): handle DetourTimeEstimator through dependency injection #3096

Merged
merged 5 commits into from
Feb 9, 2024

Conversation

sebhoerl
Copy link
Contributor

@sebhoerl sebhoerl commented Feb 7, 2024

Which DetourTimeEstimator to use was kind of hardcoded before. This PR now includes the interface in dependency injection, so we can replace it by overriding the binding. The use case is that we want to compare DRT 1:1 to another algorithm, and we want to do this with the bare calculations without approximating travel times through the TravelTimeMatrix. So this PR gives us the possibility to override the default implementations of the DetourtTimeEstimator with exact routing code.

@sebhoerl sebhoerl requested a review from michalmac February 7, 2024 21:44
Copy link
Member

@michalmac michalmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@sebhoerl sebhoerl enabled auto-merge (squash) February 9, 2024 07:31
@sebhoerl sebhoerl merged commit 499e0c3 into master Feb 9, 2024
48 checks passed
@sebhoerl sebhoerl deleted the feat/drt-detour-time-estimator-di branch February 9, 2024 07:42
nkuehnel pushed a commit to moia-oss/matsim-libs that referenced this pull request Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants