It's a relay :P the 'resistor' is the relay coil, and the dotted line shows which contacts the coil is connected to