Coverage for lode / models / truthFunction.py: 100%
9 statements
« prev ^ index » next coverage.py v7.13.0, created at 2026-03-25 15:05 +0000
« prev ^ index » next coverage.py v7.13.0, created at 2026-03-25 15:05 +0000
1from .restriction import Restriction
3class TruthFunction(Restriction):
5 # the has_cardinality_type can have one of three values: "max", "min", and "exact". Any other string will be interpreted as "exact".
6 # fallback = exact
8 def __init__(self, **kwargs):
9 super().__init__(**kwargs)
11 self.has_logical_operator = None # string[1]
13 def get_has_logical_operator(self):
14 """Restituisce la stringa per has_logical_operator"""
15 return self.has_logical_operator
17 def set_has_logical_operator(self, literal):
18 """Aggiunge una str a as_logical_operator"""
19 self.has_logical_operator = literal