Book a Demo

Author Topic: Reversed Composition-connector + Navigability  (Read 3243 times)

Rouven

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
    • View Profile
Reversed Composition-connector + Navigability
« on: June 21, 2012, 10:17:49 pm »
Hi everyone,

I seem to have run into a bug in my EA 9.2. I'm currently working on many connectors throughout my class model. What was formerly bi-directional associations is now turning into directed associations, so I have a navigable and a non-navigable end. As part of my work I was also taking the opportunity of not only setting navigability, but also align the connectors so that Source-->Target is also the allowed navigation (source non navigable, target navigable).

Now I have many compositions and I don't know whether it is EA or UML standard, but the composition is always drawn source to composed target, so A would be source and B target:
A -----<>B

I need the connector to look as follows:
A <-------<> B

And I thought I could also achieve that B is the source and A the target.

So I thought I could be able to run the following steps to get there:
  • Reverse connector from source=A, target=B to source=B, target=A
  • make the A end navigable
  • make the B end a composite
What seems to happen now is that EA will not draw the "navigable" arrow. It will only draw it if the B end is also navigable, as soon as that becomes non-navigable it will remove the navigable arrow on the A side as well.

Is this a known bug? I mean the actual direction is not critical as long as the navigation is correct, but still, it seems like an irreversible behavior...

Thanks!
Regards,
Rouven

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Reversed Composition-connector + Navigability
« Reply #1 on: June 22, 2012, 09:14:06 pm »
Hi Rouven,

This is pretty much by design...

See:
Directedness and Navigability of Edges,
Aggregation and Association proposal
Allow replacement of EA Aggregations,
and
Aggregations & ShapeScripts

You may care to note the dates on some of the postings.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!