Book a Demo

Author Topic: Class instances don't show attributes  (Read 5722 times)

Mike Clark

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Class instances don't show attributes
« on: September 29, 2003, 09:02:33 pm »
I've created a simple class diagram and now I want to create another diagram showing specific instances of those classes.

If I copy the class as an instance I cannot find a way to show the attributes.

If I want to assign a specific value to an attribute for this instance diagram it always modifies the class definition.

Am I going about this the wrong way or am I missing something obvious in using the tool?

I'm using version 3.51.618 from a SQLServer database.

Any help appreciated.

tks...mike

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Class instances don't show attributes
« Reply #1 on: October 01, 2003, 06:53:49 pm »
Hi Mike,

You need to set the run state of the object (instance)

1. Select the object in the diagram.
2. Right click and select "Set Run State" from the context menu.  This invokes the "Define Run State" dialogue.
3. Choose an attribute and enter it's initial value, notes etc.
4. Click apply.
5. Repeat steps 3 and 4 for all desired attributes
6. Click ok

Now the defined attributes are displayed with the Object.

Hope this helps.

Regards,
Ben


Mike Clark

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Class instances don't show attributes
« Reply #2 on: October 08, 2003, 08:04:11 pm »
Thank you, works like a charm.

Regards
Mike

adama

  • EA User
  • **
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Re: Class instances don't show attributes
« Reply #3 on: November 22, 2019, 07:22:14 am »
Same question in 2019, except the UI has changed and it does not work like a charm. Right-click->Features->Set Run State.
Tried:
1. Setting some values for variables inherited from class. Tried matching and not matching. Does not create attribute on object.
2. Tried creating a new variable in Set Run State. Problems are:
a) does not show up as attribute on object.
b) cannot be deleted.

????

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Re: Class instances don't show attributes
« Reply #4 on: November 26, 2019, 05:07:20 am »
Are you using an out of box class or a profile? Are you sure the diagram is not set to hide the attributes compartment?