Book a Demo

Author Topic: Generated Code: relationships  (Read 3240 times)

rgrieselhuber

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Generated Code: relationships
« on: June 13, 2002, 07:34:55 am »
I am new to EA, and so far I love it. I had one question, I created relationships between my classes in a logical diagram by using dependencies.

For example:

Class1 <--(1)----------(0..*)--Class2

When I generated my code, I expected to see references to these other classes, but I didn't. Am I missing something, or going about this the wrong way? Any info would be appreciated.

Best,
Ray

gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Generated Code: relationships
« Reply #1 on: June 13, 2002, 07:07:44 pm »
Hi,

When generating code the only relationships considered (at this stage) are Associations, Aggregations, Realizations and Inheritance. They are used in the following way:

Associations: depending on direction of link, one class will have a reference to the other (a class variable)

Aggregation: Same as for Associations

Realizations: All classes that connect to an Interface using the realization link will have implementation methods for the Interface operations generated automatically in code. Classes also have a suitable entry in the Extends section of their definition

Inheritance: Child classes will have their definition include a reference to the parent.

Hope this helps,
Geoff Sparks