« Back to University of La Plata

Bidirectional relations

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Bidirectional relations
community relation documentation
Answer
3/27/14 12:10 PM
Is there any way to define bidirectional relations between two classes? Or the way is to define two different relations between both classes?

RE: Bidirectional relations
connector relation bidirectional
Answer
1/8/14 7:29 AM as a reply to Karen Poch.
All relations in ADOxx are unidirectional as behaviour. Of course, you can draw a bidirectional arrow if you want or even define an attribute for the relation, whose values are "unidirectional" and "bidirectional", but when you define the relation class, you must choose a FROM class and a TO class. By implication, every connector has a FROM object and a TO object. If you want to be able to draw a connector from A to B and a connector (of the same relation class) from B to A, you can define an abstract class _AB_  , derive classes A and B from class _AB_ and then define your relation class "abRab" from _AB_ to _AB_ .