bobocep.cep.phenom.pattern.predicate.BoboPredicate
- class bobocep.cep.phenom.pattern.predicate.BoboPredicate[source]
Bases:
abc.ABCA predicate that evaluates to either True or False.
- __init__()
- abstract evaluate(event: bobocep.cep.event.event.BoboEvent, history: bobocep.cep.event.history.BoboHistory) bool[source]
Evaluates the predicate.
- Parameters
event (BoboEvent) – An event.
history (BoboHistory) – A history of events.
- Returns
True if the predicate evaluates to True, False otherwise.
- Return type
bool