set the logic of multiple Alarm Ringing.

to be continued.