Solenoid switches