« Takaisin University of La Plata

Bidirectional relations

Yhdistelmä näkymä Sisentämätön näkymä Puunäkymä
Aiheet [ Edellinen | Seuraava ]
toggle
Bidirectional relations
community relation documentation
Vastaus
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
Vastaus
8.1.2014 7:29 vastauksena Karen Poch:aan.
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_ .