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: reduce path requirement to compute spacing resource uses #7808

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

eckter
Copy link
Contributor

@eckter eckter commented Jun 20, 2024

We used to require path until it includes a zone that isn't necessary for the train. But we don't need to know which precise block it is, it doesn't need to be included in the path.

Fix #7788, there's a little more explanation there with a fancy drawing

Change summary: we rely on the followingZoneState parameter of SignalingSimulator.evaluate() to figure out if a zone affects the signal (if the end of the path has been reached). This lets us peek one zone further than before.

@eckter eckter requested a review from Khoyo June 20, 2024 14:41
@eckter eckter requested a review from a team as a code owner June 20, 2024 14:41
We used to require path until it includes a zone that
isn't necessary for the train. But we don't need to know
which precise block it is, it doesn't need to be included
in the path.
@eckter eckter force-pushed the ech/reduce-path-requirement branch from aca10b2 to d983224 Compare June 20, 2024 14:49
Copy link
Contributor

@bougue-pe bougue-pe left a comment

Choose a reason for hiding this comment

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

LGTM (although probably not getting it all).
Thanks for the description, helps a lot 👍

@eckter eckter added this pull request to the merge queue Jun 20, 2024
Merged via the queue into dev with commit c83059c Jun 20, 2024
17 checks passed
@eckter eckter deleted the ech/reduce-path-requirement branch June 20, 2024 15:40
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: spacing resources: we require the path to be one block longer than necessary
4 participants