scd.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. from services.base import Service, UUID
  2. from state.base import State
  3. from typing import Any, List
  4. class SCD(Service):
  5. def __init__(self, model: UUID, state: State):
  6. super().__init__(model)
  7. self.state = state
  8. def create_class(self, name: str, abstract: bool, min_c: int, max_c: int):
  9. pass
  10. def create_association(self, name: str, source: str, target: str, src_min_c: int, src_max_c: int, tgt_min_c: int, tgt_max_c: int):
  11. pass
  12. def create_global_constraint(self, name: str):
  13. pass
  14. def create_attribute(self, name: str):
  15. pass
  16. def create_attribute_link(self, source: str, target: str, name: str, optional: bool):
  17. pass
  18. def create_model_ref(self, name: str, model: UUID):
  19. pass
  20. def create_inheritance(self, child: str, parent: str):
  21. pass
  22. def add_constraint(self, element: str, code: str):
  23. pass
  24. def list_elements(self):
  25. pass
  26. def delete_element(self, name: str):
  27. pass
  28. def update_class(self, name: str, abstract: bool, min_c: int, max_c: int):
  29. pass
  30. def update_association(self, name: str, src_min_c: int, src_max_c: int, tgt_min_c: int, tgt_max_c: int):
  31. pass
  32. def update_attribute_link(self, name: str, attribute_name: str, optional: bool):
  33. pass