Page tree

Versions Compared

Key

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

...

stationdrive-through track
IC_stationIC_ST_1
OC_stationOC_ST_3
KH_stationKH_ST_5
KH_station(r)KH_ST_1

Rulesets

Logging

  • The variable debug indicates verbose 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.

Codestyle

  • Use entry-/exit-actions instead of actions on transitions, if possible.
  • If using hostcode, only use functions delivered by our own C-Interface and not the Höhrmann-API.