CTCRBCSim
ADR-029 CTC simulator — receive-only observer of train-connected/MA indications
Loading...
Searching...
No Matches
CTCRBCSim

The CTC simulator of the ADR-029 sim trio — a single instance overseeing both sites, a receive-only observer of train-connected / MA-granted / MA-extended indications, built on SimCore's shared transport plumbing.

Driven by safeAPIRBC2oo2TestEnv/robot/ over SimCore's control port.

What's here

  • src/ctc/ctc_sim.py — the simulator, console script ctc-sim (ctc.ctc_sim:main).
  • src/ctc/message_catalog.json — this sim's own message-name/kind-number/field catalog.

Note: src/ctc/rbc_messages.py, if present in a checkout, is untracked, in-progress work unrelated to this README/Doxygen pass — it isn't imported by ctc_sim.py and doesn't match SimCore's own extraction. Confirm with whoever added it before relying on or removing it.

Building

python -m build --outdir dist

Depends on simcore, resolved from SimCore/dist/ or Conan — see SimCore's README.

Running

pip install --find-links ../SimCore/dist --find-links dist ctcrbcsim
ctc-sim # reads config from SIM_CONFIG_PATH, default /app/config.json

Dockerfile (context: the SAPI workspace root) builds a multi-stage image the same way the other two sims' do. Normally run as part of the full stack via safeAPIRBC2oo2TestEnv/docker-compose.yml.