In locomotives or motor railcars with two or different kinds or types of engine