A Language And Architecture For Adaptive Event Pattern Detection