A generator is the combination of a prime mover such as diesel engines, gas engines, steam turbines etc. connected to an alternator to generate electrical energy.