implement 'topification': adding an abstract 'Top'-class to a class diagram, and making all classes inherit from it

This commit is contained in:
Joeri Exelmans 2024-11-22 13:36:45 +01:00
parent daa50d8c82
commit ffc07fd83c
8 changed files with 86 additions and 0 deletions

View 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)
```;
}