TL;DR
I would like to have an additional circuit network output from the train stops showing me the number of other viable train stops with the same name.What ?
Train stops can already put various information on the circuit network. In addition to these I would like to know how many train stops of the same name are active and can be approached by trains (i.e. are not full in the sense of train limits).This would work similarly to the number or trains approaching the train stop, just with different information.
It is important that this information is about the other train stops and changing state of the current stop does not change this information.
Why ?
To implement train stop priorities:- Train stop with the highest priority is always on, but can deactivate, e.g. when resources are depleted.
- Train stop with next priority can detect that change and activate itself.
- (The state is stable, because the information does not include the train stop itself.)
To implement depots:
- Add a depot train stop with the same name as the outpost stop.
- Activate the depot train stop only when there are no other train stops.
- Trains will go out as long as there are viable stops, otherwise go to the depot.
Update: The information is already in the base (as suggested below) and could be transported via a very large circuit network. My rationale was that information that is already shared in the train network could be made available locally.