Nuclear Power Plant
This screencast shows how to use MEdit4CEP to graphically model the event patterns for a simplistic temperature monitoring system, as well as to automatically generate the patterns implementation in Esper EPL (Event Processing Language).
Suppose that a nuclear plant sensor takes a temperature reading every second, and sends the data to a central monitoring system. We need to be warned when the following 3 event patterns are detected by the Esper CEP engine:
- Monitor: It computes the average temperature every 10 seconds.
- Warning: It warns if 2 consecutive temperatures above a certain threshold (400ºC) are detected.
- Critical: It alerts of any sudden, rising escalating temperature spike whereby there are 4 consecutive events, with the first one above 100ºC, each subsequent one greater than the previous, and the last one being 1.5 times greater than the first.
nuclear_plant_patterns.zip can be imported in MEdit4CEP by selecting File > Import Event Patterns...