Source code for pm4py.algo.discovery.inductive.fall_through.abc
from abc import ABC, abstractmethod
from typing import Generic, TypeVar, Tuple, List, Optional, Dict, Any
from pm4py.algo.discovery.inductive.dtypes.im_ds import IMDataStructure
from pm4py.objects.process_tree.obj import ProcessTree
T = TypeVar("T", bound=IMDataStructure)
[docs]
class FallThrough(ABC, Generic[T]):
[docs]
@classmethod
@abstractmethod
def holds(cls, t: T, parameters: Optional[Dict[str, Any]] = None) -> bool:
pass
[docs]
@classmethod
@abstractmethod
def apply(
cls,
t: T,
pool=None,
manager=None,
parameters: Optional[Dict[str, Any]] = None,
) -> Optional[Tuple[ProcessTree, List[T]]]:
pass