bobocep.cep.phenom.pattern.predicate.BoboPredicateCall
- class bobocep.cep.phenom.pattern.predicate.BoboPredicateCall(call: Callable)[source]
Bases:
bobocep.cep.phenom.pattern.predicate.BoboPredicateA predicate that evaluates using a custom function or method (i.e. a ‘callable’).
- __init__(call: Callable)[source]
- Parameters
call – The callable to use for evaluating the predicate.
- evaluate(event: bobocep.cep.event.event.BoboEvent, history: bobocep.cep.event.history.BoboHistory) bool[source]
- Parameters
event – The event used for evaluation.
history – The history of currently accepted events.
- Returns
True if predicate is satisfied; False otherwise.