Active Safety Methodologies of Rail Transportation