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

Fault-Injection does not clear reservations #548

Open
Lietze opened this issue Jun 19, 2023 · 0 comments
Open

Fault-Injection does not clear reservations #548

Lietze opened this issue Jun 19, 2023 · 0 comments

Comments

@Lietze
Copy link
Collaborator

Lietze commented Jun 19, 2023

Bug: Fault-Injection does not clear reservations

Problem Description

  1. What happens:
    Reservations for Trains don't get cleared out when a fault is inserted and everything is calculated again.
  2. What is the expected behavior:
    The reservations on every track and on every train should be reset
  3. If not VERY clear: Why is this a problem:
    This will most likely lead to trains being stuck after a fault is inserted due to the trains reserved_tracks having a duplicate of the route the train will drive. Also, having too many reservations on a track may lead to unexpected behavior or to some features not working (crossing reserved route)

Steps For Reproduction

I have not tried it, but:

  1. run a simulation
  2. have trains pass multiple platforms
  3. insert the fault right after the train spawned
  4. I think it will break after the train has reached the first platform on its trip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant