bobocep.cep.phenom.pattern.pattern.BoboPattern
- class bobocep.cep.phenom.pattern.pattern.BoboPattern(name: str, blocks: List[BoboPatternBlock], preconditions: List[BoboPredicate], haltconditions: List[BoboPredicate], singleton: bool = False)[source]
Bases:
objectA pattern that represents a means by which to detect the occurrence of some phenomenon.
- __init__(name: str, blocks: List[BoboPatternBlock], preconditions: List[BoboPredicate], haltconditions: List[BoboPredicate], singleton: bool = False)[source]
- Parameters:
name – The pattern name.
blocks – The pattern blocks.
preconditions – The pattern preconditions.
haltconditions – The pattern haltconditions.
singleton – If True, the pattern can only have one active run at a time.
- property blocks: Tuple[BoboPatternBlock, ...]
- Returns:
Pattern blocks.
- property haltconditions: Tuple[BoboPredicate, ...]
- Returns:
Pattern haltconditions.
- property name: str
- Returns:
Pattern name.
- property preconditions: Tuple[BoboPredicate, ...]
- Returns:
Pattern preconditions.
- property singleton: bool
- Returns:
True if pattern can only have one active run at a time; False otherwise.