RAMify: associations can also have attributes...
This commit is contained in:
parent
6d7a62545c
commit
8504ba52f6
1 changed files with 10 additions and 0 deletions
|
|
@ -99,6 +99,16 @@ def ramify(state: State, model: UUID, prefix = "RAM_") -> UUID:
|
|||
|
||||
already_ramified.add(assoc_name)
|
||||
|
||||
# Associations can also have attributes...
|
||||
for (attr_name, attr_edge) in od.get_attributes(bottom, assoc_node):
|
||||
# print(' creating attribute', attr_name, "with type String")
|
||||
# Every attribute becomes 'string' type
|
||||
# The string will be a Python expression
|
||||
ramified_attr_link = ramified_scd._create_attribute_link(prefix+assoc_name, actioncode_modelref, prefix+attr_name, optional=True)
|
||||
# create traceability link
|
||||
bottom.create_edge(ramified_attr_link, attr_edge, RAMIFIES_LABEL)
|
||||
|
||||
|
||||
assocs_to_ramify = ramify_later
|
||||
|
||||
for inh_name, inh_node in m_scd.get_inheritances().items():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue