alternator: an old term for an electric generator that produces alternating current (especially in automobiles)
generator: engine that converts mechanical energy into electrical energy by electromagnetic induction
library: (computing) a collection of standard programs and subroutines that are stored and available for immediate use