Book a Demo

Author Topic: Object Diagram: Showing attribute values  (Read 6977 times)

Gary W.

  • EA User
  • **
  • Posts: 139
  • Karma: +0/-0
    • View Profile
Object Diagram: Showing attribute values
« on: June 25, 2003, 04:36:56 pm »
Hi,

Is there a way to set (and display) attribute values in an Object Diagram?

TIA,
Gary Wong

Tjerk

  • EA User
  • **
  • Posts: 231
  • Karma: +1/-0
    • View Profile
Re: Object Diagram: Showing attribute values
« Reply #1 on: June 26, 2003, 02:18:59 am »
Hi Gary,

Yes you can. Right-click the object on a diagram and select "Set Run State...". There you can enter attribute values that will be shown on the diagram.

There are some known limitations:

- the order you fill the values determines the order of display, in reverse order. The first value you enter will end up as the last value shown.

- You cannot directly change a value. You have to enter a new value for the attribute to override the previous value. Values can be deleted by setting the value of the attribute with no value;

Greetings,
Tjerk

mille

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Object Diagram: Showing attribute values
« Reply #2 on: April 20, 2004, 05:07:52 am »
What if the attribute is an association to another object? Is it possible in any way to point out that object in the object diagram and use the association defined in the class diagram?

For example:
I have two classes A and B, A and B have an association that points from A to B and that is used as the role b in A. If I create two objects AA and BB and want to have the association also in the object diagram, do I then have to recreate the association or is there any dialog where I can point out object BB to use it to fill b in AA?

/Mille