bobocep.cep.phenom.pattern.pattern.BoboPatternBlock

class bobocep.cep.phenom.pattern.pattern.BoboPatternBlock(predicates: List[bobocep.cep.phenom.pattern.predicate.BoboPredicate], group: str, strict: bool, loop: bool, negated: bool, optional: bool)[source]

Bases: object

A pattern block.

__init__(predicates: List[bobocep.cep.phenom.pattern.predicate.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.

  • strictTrue if the block has strict contiguity; False otherwise.

  • loopTrue if the block loops back to itself; False otherwise.

  • negatedTrue if the block is negated; False otherwise.

  • optionalTrue 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[bobocep.cep.phenom.pattern.predicate.BoboPredicate, ...]
Returns

Block predicates.

property strict: bool
Returns

True if pattern block has strict contiguity; False otherwise.