Object Diagrams: slots work

This commit is contained in:
Joeri Exelmans 2024-09-03 14:00:55 +02:00
parent d2c996f4f7
commit 2b22be01ec
8 changed files with 79 additions and 704 deletions

18
transformation/ramify.py Normal file
View file

@ -0,0 +1,18 @@
from state.base import State
from uuid import UUID
from services.bottom.V0 import Bottom
from services.scd import SCD
def ramify(state: State, model: UUID) -> UUID:
"""
Parameters:
bottom: Bottom-service, wrapping MVS
model: An SCD-conforming meta-model to ramify
"""
scd = SCD(model, state)
classes = scd.get_classes()
print(classes)
attrs = scd.get_attributes('A')
print(attrs)