A complete vehicle with Simscape™ Driveline™ components, including the engine, drivetrain, four-speed transmission, tires, and longitudinal vehicle dynamics. The transmission controller is implemented as a state machine in Stateflow®, selecting the gear based on throttle and vehicle speed.