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

core: add requirement margin for stop on closed signal (conflict detection) #9195

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

bougue-pe
Copy link
Contributor

20 s anticipation for the start of resource requirement when stopping on closed signal.

Fix: #8813

@bougue-pe bougue-pe requested a review from a team as a code owner October 4, 2024 09:27
@codecov-commenter
Copy link

codecov-commenter commented Oct 4, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 38.52%. Comparing base (eb992f6) to head (d4e146b).
Report is 1 commits behind head on dev.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #9195      +/-   ##
============================================
+ Coverage     38.45%   38.52%   +0.07%     
  Complexity     2244     2244              
============================================
  Files          1288     1288              
  Lines         98449    98454       +5     
  Branches       3273     3273              
============================================
+ Hits          37857    37932      +75     
+ Misses        58655    58585      -70     
  Partials       1937     1937              
Flag Coverage Δ
core 74.87% <100.00%> (ø)
editoast 72.36% <ø> (+0.25%) ⬆️
front 10.13% <ø> (ø)
gateway 2.19% <ø> (ø)
osrdyne 2.43% <ø> (ø)
railjson_generator 87.49% <ø> (ø)
tests 86.71% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bougue-pe bougue-pe force-pushed the peb/core/add_closed_signal_reservation_margin branch from 5db36e8 to 7e8ed4e Compare October 4, 2024 09:29
@@ -40,6 +40,8 @@ import mu.KotlinLogging

private val logger = KotlinLogging.logger {}

const val CLOSED_SIGNAL_RESERVATION_MARGIN = 20.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add some documentation on that constant?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in d4e146b

@bougue-pe bougue-pe removed the request for review from Erashin October 10, 2024 08:08
bougue-pe

This comment was marked as off-topic.

…ction)

20 s anticipation for the start of resource requirement when stopping on
closed signal.

Signed-off-by: Pierre-Etienne Bougué <[email protected]>
@bougue-pe bougue-pe force-pushed the peb/core/add_closed_signal_reservation_margin branch from 7e8ed4e to d4e146b Compare October 11, 2024 06:57
@bougue-pe
Copy link
Contributor Author

bougue-pe commented Oct 11, 2024

Please review d4e146b: I fixed a little bit the processing of critical distance, as it could lead to use a stop that was before the signalSight in routing requirement (too late if): d4e146b#diff-8078a2f57f53541732c3008fa2e15551402baba5959c846d63fa84e9d9637e4bL395

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.

Core: start conflict detection on closed signal 20s before train restart
4 participants