In a generator, as the magnet spins, opposite poles of the magnet push the electrons in opposite directions. This back-and-forth movement of electrons is called. In contrast, the movement of electrons in one direction in a battery circuit is called.