Αποψη συνδυασμού Επίπεδη άποψη Αποψη δέντρων
toggle
Bidirectional relations
community relation documentation
Απάντηση
27/3/2014 12:10 μμ
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
Απάντηση
8/1/2014 7:29 πμ 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_ .