Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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:
stationdrive-through track
IC_stationIC_ST_1
OC_stationOC_ST_3
KH_stationKH_ST_5
KH_station(r)KH_ST_1
  • 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.

...