classmethod foxes_opt.core.FarmConstraint.new(constraint_type, *args, **kwargs)[source]

Run-time farm constraint factory.

Parameters

constraint_type: string

The selected derived class name

args: tuple, optional

Additional parameters for the constructor

kwargs: dict, optional

Additional parameters for the constructor