-
Notifications
You must be signed in to change notification settings - Fork 44
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
core: update stdcm with temporary speed limits #9837
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #9837 +/- ##
==========================================
- Coverage 38.18% 38.17% -0.01%
==========================================
Files 996 996
Lines 92033 92033
Branches 1192 1192
==========================================
- Hits 35140 35136 -4
- Misses 56437 56441 +4
Partials 456 456
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
54525cf
to
258627d
Compare
e3a3b09
to
6e9b39a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job!
Having the TemporarySpeedLimitManager
inside the PathProperties
is quite an invasive change, having to pass it around everywhere. I think I would have preferred if it were handled in the same way as train tags: the path properties only contains "static" data, and we input extra dynamic data when computing the MRSP. We'd still have to pass it around but only up to STDCMSimulations
, not all the way down to path properties.
.../kt-osrd-sim-infra/src/main/kotlin/fr/sncf/osrd/sim_infra/impl/TemporarySpeedLimitManager.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/api/api_v2/stdcm/STDCMEndpointV2.kt
Outdated
Show resolved
Hide resolved
6e9b39a
to
53436ce
Compare
3b3ab4a
to
8c84de2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice work! (don't overwork yourself though 👀)
There's some minor stuff to fix here and there, but no large scale change
core/src/main/java/fr/sncf/osrd/standalone_sim/StandaloneSim.java
Outdated
Show resolved
Hide resolved
.../kt-osrd-sim-infra/src/main/kotlin/fr/sncf/osrd/sim_infra/impl/TemporarySpeedLimitManager.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/api/api_v2/stdcm/STDCMEndpointV2.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/api/pathfinding/PathPropUtils.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/stdcm/graph/EngineeringAllowanceManager.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/stdcm/infra_exploration/InfraExplorer.kt
Outdated
Show resolved
Hide resolved
07f3397
to
5a36131
Compare
Co-authored-by: Younes Khoudli <younes.khoudli@epita.fr> Signed-off-by: Loup Federico <16464925+Sh099078@users.noreply.github.com>
5a36131
to
e3fe49d
Compare
Fixes #8707
Add a list of temporary speed limits in the incoming STDCM requests and apply them to the pathfinding