Book a Demo

Author Topic: Problem with directed associations  (Read 3839 times)

cleber

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Problem with directed associations
« on: April 10, 2009, 09:20:03 am »
We have two UML packages, one containing our base UML diagrams (called package X), and one containing a UML diagram that contains/builds on pieces from package X (called package Y).  What we want is for package Y to be dependent on package X, but for package X  not to be dependent on package Y.  Through clicking-and-dragging, we have dragged a class (class A) from package X in to a diagram in package Y, and established a directed association from a class in package Y (class B) to class A (i.e., class B is the association source, and class A is the association target).  

However, if we now right click on class A, click on properties, then on the links tab, we can see the relationship between class A and class B listed under the relationships for class A.  Validation software that we are using is reading this as a dependency and thinking that class A must be dependent on class B, so then package X is dependent on package Y.  This is not the case.  What we would like to do is have each class aware of only the relationships in which it is the source, and disregard those for which it is the target.  Is this possible?

Thank you in advance for any help you can provide.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Problem with directed associations
« Reply #1 on: April 10, 2009, 03:27:48 pm »
The fact that the link shows up in the link tab of the properties does not mean it is dependant on the other class. It is just a convenience feature allowing you to quickly see all link from and to this class.
Also source and target do not mean anything either.
What you should be looking at is the navigability.
If the association on the end of A is navigable then B is dependent on A (and vice versa).
If your software checks something else, without regard for the navigability then it should be considered as a bug.

cleber

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Problem with directed associations
« Reply #2 on: April 14, 2009, 03:22:27 am »
Thank you for the help.  I tried changing the navigability, and it made no difference.  I'll take the question up with the people who wrote the validation software we're using.  Thanks again.