Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Matthieu, in ProcessingElement, I think you need to make the trigger map key dynamic, no? The trigger object is stored using the Event class as key which means that for CounterEvent, the key should be CounterEvent.class.
private boolean isTrigger(Event event)
{ /* Check if there is a trigger for this event type. */ Trigger trigger = triggers.get(Event.class); // TODO: modify for dynamic // dispatch. if (trigger == null) return false; /* * Check if it is time to activate the trigger for this event type. */ return trigger.checkAndUpdate(); }Matthieu, in ProcessingElement, I think you need to make the trigger map key dynamic, no? The trigger object is stored using the Event class as key which means that for CounterEvent, the key should be CounterEvent.class. private boolean isTrigger(Event event) { /* Check if there is a trigger for this event type. */ Trigger trigger = triggers.get(Event.class); // TODO: modify for dynamic // dispatch. if (trigger == null) return false; /* * Check if it is time to activate the trigger for this event type. */ return trigger.checkAndUpdate(); }