Book a Demo

Author Topic: Code Generation involving associations  (Read 3056 times)

LNS_Software

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Code Generation involving associations
« on: March 08, 2004, 06:58:22 pm »
I have the following specification:



I am generating code for btAudioFile.  Excluding the attributes, I see only one association getting defined:

      public ArrayList patterns;

I would expect to also a definition for track as:

      public btAudioTrack track;

Am I expecting too much from the code generator, or am I making a mistake in the way in which I specify the association?

Any help would be appreciated.  Thanks.

jkorman

  • EA User
  • **
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: Code Generation involving associations
« Reply #1 on: March 08, 2004, 08:43:10 pm »
For the association btAudioFile <----> btAudioTrack

Set the Direction to Bi-Directional

btAudioTrack should be Source : Role = track
btAudioFile should be Target : Role = audioNotes

Set the multiplicity of track to nothing
Set the containment of of track to value

Set the multiplicity of audioNotes to 0..*

Jim