Train Control Systems Framework