Book a Demo

Author Topic: EA class model enforcement  (Read 2527 times)

atw

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
EA class model enforcement
« on: March 08, 2005, 09:16:05 am »
Hello,

I was wondering if anyone know of a way to enforce the EA class model when creating an object model based on the class model (i.e. object model using instances of classes defined in the class model)?

Thanks!
Nick

thomaskilian

  • Guest
Re: EA class model enforcement
« Reply #1 on: March 08, 2005, 09:53:16 am »
Try Ctrl-Drag with the classes. A dialog will pop up and ask you what you need.

atw

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: EA class model enforcement
« Reply #2 on: March 08, 2005, 10:33:45 am »
Thanks for responding to my question!

However, I did not see how the dialog box enforces my class model when I instantiate objects using the classes defined in my object model.  For instance, if in my class model I created Class_A, Class_B, and Class_C, and I defined that Class_A is assoicated with Class_B, and Class_B is associated with Class_C.  When I create object instances of these classes, I would like EA to prevent me from doing things like trying to link Object1:Class_A to Object2:Class_C.


TrtnJohn

  • EA User
  • **
  • Posts: 176
  • Karma: +0/-0
    • View Profile
Re: EA class model enforcement
« Reply #3 on: March 08, 2005, 12:05:13 pm »
I am a little confused on how your object model would be any different than your class model.  Associations can't change per instance?

If your are talking instances used in diagrams such as sequence diagrams EA doesn't enforce anything as far as I know.  I don't think you can because messages can be based on interfaces as well as class definitions.