Monitoring and interlocking of train operation by modern electronic equipment