A method of producing alkanes containing chlorine by addition of chlorine to C\u2014C double bonds or C\u2014C triple bonds or by exchange of hydrogen for chlorine by contacting the starting compound in the gas or liquid phase with elemental chlorine and irradiating the reaction mixture with UV light having a wavelength of \u03bb\u2267280 nm. The behavior feature value calculator detects the period or frequency of behaviors of a specific kind performed by a subject to be controlled. Optical signals on the first dedicated wavelength are converted to electronic signals which are monitored by the electronic controller in each hybrid switch circuit.