bobocep.cep.phenom.pattern.predicate.BoboPredicateCall
- class bobocep.cep.phenom.pattern.predicate.BoboPredicateCall(call: Callable)[source]
Bases:
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: BoboEvent, 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.