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
8
transformation/topify/rules/r_create_top_rhs.od
Normal file
8
transformation/topify/rules/r_create_top_rhs.od
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# We create the 'Top'-class with a GlobalCondition, because that's the only way we can control the name of the object to be created.
|
||||
|
||||
:GlobalCondition {
|
||||
condition = ```
|
||||
top = create_object("Top", "Class")
|
||||
set_slot_value(top, "abstract", True)
|
||||
```;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue