Rail traffic controller