...
- Contact events should only be read when it is clearly determined which train will trigger this event.
- Subsequently contact events should only be read while holding the corresponding lock.
Stations
Each station has one drive-through track for each possible direction:
- If the preferred station track is blocked the trains can switch to any other free track.
Rulesets
Logging
- All log messages must be prefixed. For Station-2-Station controllers the prefix [trainnum][ST-ST] must be used.
- The variable debug indicates verbose logging.
- Station-2-Station controllers should produce a log message when entering a new train segment even without verbose logging.
- With verbose logging every state can produce a log message as an entry action.
- Function println(String str) must be used to produce textual output.
- printf() or other IO functions must not be used, because output may not be flushed correctly.
...