« Zurück zu University of La Plata

Bidirectional relations

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Bidirectional relations
community relation documentation
Antwort
27.03.14 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
Antwort
08.01.14 07:29 als Antwort auf 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_ .