-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Railsim: Moving blocks & Deadlock avoidance (#3075)
* first step to move reroute and link request into one method * prepare test and enum for moving blocks * start restructure rail resources * add approved dist to state, prepare some restructuring * change reservation logic to be based on distance, no exceptions for now, but slight difference in some tests still need fixing * disposition can now give an approved speed, update speed calculation to include approved speed from disposition, fixes the failing tests * overhaul of the resource management, removed completely from RailLink and put into separate classes * change resource interfaces to be distance based as well * use current train position for checking reservation distance * worked on moving block implementation, still WIP * worked on moving block implementation, still WIP * worked on moving block implementation, still WIP * add track number to reservation interface, this will allow for more fine-grained control by disposition * reworked track assignment in moving block * worked on resources, test partially working now * moving block train following test now working, prepare to add more tests and scenarion * add a multi-track test for moving block * add case when dist is 0 to calc target speed * adding another network and test case * small fixed, more complex mixed test case now working * fixed situation where train blocks a link that has the same length as itself, all moving block tests now working * prepare interfaces and network for deadlock tests * worked on DeadlockAvoidance interface and tests * allow to specify if one track for the opposite direction always needs to be reserved * implemented non blocking reserve mode for fixed blocks as well, improved interfaces, update tests * improved interfaces, first draft for simple deadlock avoidance * tests for simple deadlock avoidance * update deadlock tests, improve network * added events for stuck trains, reworked dead lock avoidance interface and simple strategy * update test cases, improve deadlock avoidance * fixed dead lock avoidance for moving blocks, enabled re-routing again, but still wip * deadlock avoidance checks for re-routing, fixed remaining issues in tests * add two more deadlock tests * update to junit5
- Loading branch information
Showing
46 changed files
with
2,660 additions
and
596 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 0 additions & 62 deletions
62
contribs/railsim/src/main/java/ch/sbb/matsim/contrib/railsim/qsimengine/RailResource.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.