neofoam.framework.conditions

Unified Condition class with logical operators.

class neofoam.framework.conditions.Condition(condition_func: Callable[[...], bool], name: str = 'Condition')[source]

Bases: object

Unified condition class with logical operators.

Usage:

c1 = Condition( lambda: True, “AlwaysTrue”) c2 = Condition(lambda: check_something(), “MyCheck”) combined = (c1 & c2) | ~c1