
    nid                          " S  S5      r g)c                   $    \ rS rSrSrS rS rSrg)	Threshold   a  
A class representing a threshold for a clause in a rule.  

Attributes:  
    quantifier (str): The comparison operator, e.g., 'greater_equal', 'less', etc.  
    quantifier_type (tuple): A tuple indicating the type of quantifier, e.g., ('number', 'total').  
    thresh (int): The numerical threshold value to compare against.  

Methods:  
    to_tuple(): Converts the Threshold instance into a tuple compatible with numba types.  
c                     US;  a  [        S5      eUS   S;  d	  US   S;  a  [        S5      eXl        X l        X0l        g)	a  
Initializes a Threshold instance.  

Args:  
    quantifier (str): The comparison operator for the threshold.  
    quantifier_type (tuple): The type of quantifier ('number' or 'percent', 'total' or 'available').  
    thresh (int): The numerical value for the threshold.  
)greater_equalgreater
less_equallessequalzInvalid quantifier    )numberpercentr   )total	availablezInvalid quantifier typeN)
ValueError
quantifierquantifier_typethresh)selfr   r   r   s       ^/home/james-whalen/.local/lib/python3.13/site-packages/pyreason/scripts/threshold/threshold.py__init__Threshold.__init__   sP     XX1221%::oa>PXn>n677$.    c                 H    U R                   U R                  U R                  4$ )z
Converts the Threshold instance into a tuple compatible with numba types.  

Returns:  
    tuple: A tuple representation of the Threshold instance.  
r   r   r   )r   s    r   to_tupleThreshold.to_tuple"   s      4 4dkkAAr   r   N)__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes__ r   r   r   r      s    
(Br   r   N)r   r#   r   r   <module>r$      s   (B (Br   