EventEnablingPredicateFilter add handler

Hi guys,

I have a EventEnablingPredicateFilter, wrapping a predicate (date dependened) with detector (ApsideDetector).

This works so far, but I fail on adding a EventHandler to the EventEnablingPredicateFilter itself.

Using .withHandler(…), does not affect the “handle” propertie of my EventEnablingPredicateFilter. The propertie always stays as …LocalHandler".

How can I set the Handler of a EventEnablingPredicateFilter correctly?

Thanks! Cheers!

Hi,

Set the handler on the ApsideDetector, it will be called by EventEnablingPredicateFilter

Cheers,
Romain

Actually, looking at the code, I don’t understand how the handler remains a LocalHandler after you called withHandler.
Truth be told, I wanted to raise that subject on the forum. I think that classes like EventEnablingPredicateFilter (but also EventSlopeFilter, etc.) should not have a withHandler method working like in AbstractDetector. Otherwise, the user can workaround the logic in LocalHandler, which means that it is either useless logic or it is a bug. Am I right?

Cheers,
Romain.