Book a Demo

Author Topic: Has anyone been able to refine an association?  (Read 3709 times)

buddy robbins

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Has anyone been able to refine an association?
« on: February 12, 2011, 04:29:08 am »
I'm trying to specialize an association.  A good example why would be this:

I've got an abstract base class called Sport that has an aggregation relationship with an abstract base class called Official.

Now I create a class called Baseball that is derived from Sport, and a class called Umpire that is derived from Official.  

I can also create a class called Football, derived from Sport, and a class called Referee that is derived from Official.

Without the refinement of the aggregation relationship, it would be possible to assign a instance of Referee to an instance of Baseball.

In the past (pre-EA), I was able to do that with a <<refine>> relationship between 2 associations, but I can't seem to do that in EA.  Any suggestions?

Thanks in advance,
-Buddy Robbins

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Has anyone been able to refine an association?
« Reply #1 on: February 14, 2011, 08:09:37 pm »
Buddy,

Right-click on association|Advanced|Specialize associations... should do the trick.
There are some restrictions, but I don't remember exactly what they were. I guess the manual should exaplain those.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Has anyone been able to refine an association?
« Reply #2 on: February 15, 2011, 04:17:00 pm »
Quote
...
There are some restrictions, but I don't remember exactly what they were. I guess the manual should explain those.

Geert
The subsets labels may not render on reflexive relationships - all relationships are equal, but some (obviously) are more equal than others.  Check the label visibility.

The connector display type must be UML 2.1  (IE and IDEF1X won't work).

Not explained, Jan

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

buddy robbins

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Has anyone been able to refine an association?
« Reply #3 on: February 16, 2011, 02:59:19 am »
Thanks folks.

It's not exactly the visual representation I was expecting, but as long as it displays the info, how can I complain.

-Buddy.