18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-03 08:55:22 +01:00
Commit Graph

2 Commits

Author SHA1 Message Date
jerrrrycho 885c28c1ef fix: SonarQube findings of the buffer stops
- The notice of a finished hit is taken out of the contact with std::exchange before it goes to the scenery, so
  what the scenery does with it can't reach the one held in the contact.
- The loops count whole steps (an int, the number of steps taken with ceil) instead of adding a floating step.
- The local final of bufferstop::contact() is ending (final is a contextual keyword).

Unit tests 1294/1294.
2026-12-02 17:04:29 +01:00
jerrrrycho 9ecbd110da test: the buffer stops, against their sources and on td.scn
Unit tests of physics/bufferstop.h: the attribute, the brake elements of the
sliding stop (1848 kJ over 8 m), a locomotive shunting into a rigid stop, the
FEM case of Kowalczyk, Enfield, Kirkby, the speeds a stop is ridden up at, the
sliding stop held and overrun, the hydraulic stop, a central coupler, the
independence of the step, the adapter onto collision::hit() and the models of
the automatic rule.

Twelve scenario cases on autotest_stub of td.scn, with the new check
bufferstop of run.py on the log line of a hit.
2026-12-02 12:33:42 +01:00