Book a Demo

Author Topic: Specifying values for realized object  (Read 3474 times)

vprog

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • stored procs rule
    • View Profile
Specifying values for realized object
« on: October 29, 2003, 12:03:49 pm »
Is there a way to specify attribute values for an Object that is realized from a Class?

So for example if I have a class Point with attributes x & y that are integers, I may want an object called "MiddleOfScreen" with initial values of x=100 and y=100.

Is there a way to specify that, other than using tags (I tried that, it works but is a little awkward).

Thanks

CJ

  • EA User
  • **
  • Posts: 288
  • Karma: +0/-0
    • View Profile
Re: Specifying values for realized object
« Reply #1 on: October 29, 2003, 12:16:45 pm »
G'day,

Right-click on the object, and choose "Set Run State..." from the context menu.

This does not work if you dropped linked some object to a class via a realization.  This only works if you create an object as an instance of a class (i.e. drop the class on a diagram as an instance) or set the classifier of an object to the class in question.

Hope I explained that right.
Cheers and best regards.

vprog

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • stored procs rule
    • View Profile
Re: Specifying values for realized object
« Reply #2 on: October 30, 2003, 08:02:02 am »
That does the trick alright - thanks for the quick reply!