implement 'topification': adding an abstract 'Top'-class to a class diagram, and making all classes inherit from it
This commit is contained in:
parent
daa50d8c82
commit
ffc07fd83c
8 changed files with 86 additions and 0 deletions
9
transformation/topify/rules/r_create_inheritance_nac2.od
Normal file
9
transformation/topify/rules/r_create_inheritance_nac2.od
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Only create inheritance link once:
|
||||
|
||||
some_class:RAM_Class
|
||||
|
||||
top:RAM_Class {
|
||||
condition = `get_name(this) == "Top"`;
|
||||
}
|
||||
|
||||
:RAM_Inheritance (some_class -> top)
|
||||
Loading…
Add table
Add a link
Reference in a new issue