RAMification adds 'name' attribute, giving control over the names of created objects
This commit is contained in:
parent
7c01b126c2
commit
da4f1718ce
8 changed files with 64 additions and 32 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue