Coverage for lode / models / restriction.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2026-03-25 15:05 +0000

1from .concept import Concept 

2 

3class Restriction(Concept): 

4 

5 def __init__(self, **kwargs): 

6 super().__init__(**kwargs) 

7 

8 self.applies_on_concept = [] # 1..* 

9 

10 def get_applies_on_concept(self): 

11 """Restituisce la lista applies on concept""" 

12 return list(self.applies_on_concept) 

13 

14 def set_applies_on_concept(self, concept): 

15 """Aggiunge un Concept a applies_on_concept """ 

16 self.applies_on_concept.append(concept) 

17