Fire-alarm system design