Object Diagrams: slots work
This commit is contained in:
parent
d2c996f4f7
commit
2b22be01ec
8 changed files with 79 additions and 704 deletions
18
transformation/ramify.py
Normal file
18
transformation/ramify.py
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue