Source code for pipeline.h.heuristics.echoheuristic

import pipeline.infrastructure.api as api

[docs]class NullHeuristic(api.Heuristic):
[docs] @staticmethod def calculate(*args, **kw): return None
[docs]class EchoHeuristic(api.Heuristic): def __init__(self, val): self._val = val
[docs] def calculate(self, *args, **kw): return self._val
def __repr__(self): return str(self._val)