Title: Expert system for interlocking and sequence switching