The cab also known as crew compartment or driver's compartment of a locomotive, or a self-propelled rail vehicle, is the part housing the train driver or engineer, the fireman or driver's assistant, and the controls necessary for the locomotive's, or self-propelled rail vehicle's, operation.
Moreover on steam locomotives, the cab is normally located to the rear of the firebox, although steam locomotives have sometimes been constructed in a cab forward configuration.
The cab, or crew or driver's compartment of a diesel or electric locomotive will usually be found either inside a cabin attached to a hood unit or cowl unit locomotive, or forming one of the structural elements of a cab unit locomotive.
In addition to the locomotive controls, a cab will typically be fitted with windshields, rectangular side windows, crew seats, heating, and sometimes radios, air conditioning and toilets.
However, different types of locomotive cabs are: