Book a Demo

Author Topic: Aggregation to self  (Read 6596 times)

KirilD

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Aggregation to self
« on: March 09, 2004, 01:21:45 am »
I'm trying to create an aggregation from a class to itself, and am having a problem. Namely, I cannot get the aggregation to appear on screen. It exists, and appears in the links section of the class properties, but I can't seem to do anything to get it to appear on screen.

Normal associations appear fine.

Thanks for any help,

Kiril

fluxtah

  • EA User
  • **
  • Posts: 144
  • Karma: +0/-0
    • View Profile
Re: Aggregation to self
« Reply #1 on: March 09, 2004, 04:21:42 am »
I get this problem too  :-[

thomaskilian

  • Guest
Re: Aggregation to self
« Reply #2 on: March 09, 2004, 06:22:17 am »
Look at jvogt's reponse earlier in this board.

Thomas

KirilD

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Aggregation to self
« Reply #3 on: March 09, 2004, 02:15:45 pm »
Thanks, jvogt's solution works.

This is then, I assume, a bug. Has it been reported as such? Are there any plans to fix it?

Kiril

fluxtah

  • EA User
  • **
  • Posts: 144
  • Karma: +0/-0
    • View Profile
Re: Aggregation to self
« Reply #4 on: March 09, 2004, 02:17:42 pm »
Hiya,

I just updated my EA to the latest build, works fine now.

regards

Ian

KirilD

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Aggregation to self
« Reply #5 on: March 09, 2004, 02:20:57 pm »
Was that 3.60.662 or the beta of 4?

Thanks,

Kiril

fluxtah

  • EA User
  • **
  • Posts: 144
  • Karma: +0/-0
    • View Profile
Re: Aggregation to self
« Reply #6 on: March 09, 2004, 02:37:58 pm »
was 662,

regards

Ian

KirilD

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Aggregation to self
« Reply #7 on: March 09, 2004, 08:53:06 pm »
I'm running 662, and still have this problem.

Also, with jvogt's solution, I get an arrow appearing at the diamond end, and nothing I do can remove it - changing the direction of the aggregation leaves it there, as does setting it to bi-directional or unspecified.

Kiril

fluxtah

  • EA User
  • **
  • Posts: 144
  • Karma: +0/-0
    • View Profile
Re: Aggregation to self
« Reply #8 on: March 10, 2004, 03:57:46 am »
strange, not sure what the prob here is then, seems to be working for me now but will experiment when I get home, we have EA at work but it has not ben installed for me yet  >:(

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: Aggregation to self
« Reply #9 on: March 10, 2004, 04:43:03 am »
Just out of curiosity, because I might have the wrong idea about aggregations:

An aggregate is a class that consist of one or more parts, isn't it? How can a class be part of itself? This seem like an infinite recursion to me.

Am I getting something wrong?

Mikkel

jvogt

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
  • software engr in training
    • View Profile
Re: Aggregation to self
« Reply #10 on: March 10, 2004, 07:40:37 am »
Hello All,

I did submit this as a bug. I am also getting the unmoveable arrow on the aggregation.

The best example I can think of for self-aggregation is a node in a tree. Each parent node will contain references to its child nodes. (Parent and child nodes are of the same type.)

Regards,
Jesse

JourneymanDave

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Aggregation to self
« Reply #11 on: March 10, 2004, 09:31:52 am »
Mikkel, a composition is a type of aggregation that defines physical containment of the type you're thinking of.  Like Piston, Valve and Crankshaft objects composing an Engine object.

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Aggregation to self
« Reply #12 on: March 11, 2004, 07:24:01 pm »
Hi Guys,

Thanks for your comments.

The bug preventing the display of self-aggregation has been noted- we will fix this ASAP.

The unmovable arrowhead results from a limitation which only allows self-associations  to have "Source to Destination" direction. There is work in the pipeline to make self-associations/aggregations more flexible for future releases of EA.

Regards,
Ben