Got a bit bored this afternoon so I knocked-up this demo flow. It has a finite state machine (FSM) for each of the 6 signals and an animated slider to mimic a train journey. To keep things simple there is only one buffer block (caution block) - you can obviously modify that by introducing additional blocks and signals.
BOD means Block Occupancy Detector.
Hope you find it useful.
The Node-RED flow is below as together with the screenshots it exceeded the 32,000 character limit.