RAMification adds 'name' attribute, giving control over the names of created objects

This commit is contained in:
Joeri Exelmans 2024-12-03 20:28:16 +01:00
parent 7c01b126c2
commit da4f1718ce
8 changed files with 64 additions and 32 deletions

View file

@ -1,11 +1,9 @@
# 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)
lnk = create_link("generic_link", "Association", top, top)
# lnk also inherits top:
create_link(None, "Inheritance", lnk, top)
```;
}
Top:RAM_Class {
RAM_abstract = `True`;
}
generic_link:RAM_Association (Top -> Top)
:RAM_Inheritance (generic_link -> Top)