Response regulation and sensory control in Halobacterium halobium based on an oscillator