A motorman, also known as a qualified member of the engineering department (QMED), is the seniormost rate in the engine room of a ship.
The motorman, also referred to as a QMED, holds the top rank within the engine room on a vessel.