Complex reactive event processing for assisted living: The Habitat project case study