can you also tell me the functioning of those parts. thank you.
I think you mean diesel-electric generator. Properly, a diesel generator is a factory that makes diesel fuel. And the parts (at a high level, as there are thousands of parts total) are a diesel engine, plus fuel tank. an electric generator or alternator and electronic and mechanical controls to adjust the engine and generator so that it outputs the required voltage and frequency as the load changes.