* Listener method called when Esper has detected a pattern match.
*/
public void update(Map<String, TemperatureEvent> eventMap) {
// 1st Temperature in the Critical Sequence
TemperatureEvent temp1 = (TemperatureEvent) eventMap.get("temp1");
// 2nd Temperature in the Critical Sequence
TemperatureEvent temp2 = (TemperatureEvent) eventMap.get("temp2");
// 3rd Temperature in the Critical Sequence
TemperatureEvent temp3 = (TemperatureEvent) eventMap.get("temp3");
// 4th Temperature in the Critical Sequence
TemperatureEvent temp4 = (TemperatureEvent) eventMap.get("temp4");
StringBuilder sb = new StringBuilder();
sb.append("***************************************");
sb.append("\n* [ALERT] : CRITICAL EVENT DETECTED! ");
sb.append("\n* " + temp1 + " > " + temp2 + " > " + temp3 + " > " + temp4);