Advanced associations
We use the term
advanced association for
n-ary associations, association-classes, and n-ary association-classes.
All such associations are created via RAAPI function
createAdvancedAssociation(String name, boolean nAry, boolean associationClass)
An advanced association behaves likes a class (although it might not be a class internally)
with n bidirectional associations attached to it. To specify all n association ends,
call
createAssociation
n times,
where a reference to the n-ary association has to be passed instead of one of the class references.
N-ary association links can be created by means of
createObject
,
and n-ary link ends can be created by calling
createLink
n times and passing a reference to the n-ary link instead of one of the object references.