bobocep.cep.phenom.pattern.pattern.BoboPatternBlock
- class bobocep.cep.phenom.pattern.pattern.BoboPatternBlock(predicates: List[BoboPredicate], group: str, strict: bool, loop: bool, negated: bool, optional: bool)[source]
Bases:
objectA pattern block.
- __init__(predicates: List[BoboPredicate], group: str, strict: bool, loop: bool, negated: bool, optional: bool)[source]
- Parameters:
predicates – Block predicates.
group – The group with which the block is associated. Can be an empty string.
strict – True if the block has strict contiguity; False otherwise.
loop – True if the block loops back to itself; False otherwise.
negated – True if the block is negated; False otherwise.
optional – True if the block is optional; False otherwise.
- property group: str
- Returns:
Block group.
- property loop: bool
- Returns:
True if pattern block loops; False otherwise.
- property negated: bool
- Returns:
True if pattern block is negated; False otherwise.
- property optional: bool
- Returns:
True if pattern block is optional; False otherwise.
- property predicates: Tuple[BoboPredicate, ...]
- Returns:
Block predicates.
- property strict: bool
- Returns:
True if pattern block has strict contiguity; False otherwise.