Author Topic: Values for an instantiated class  (Read 2792 times)

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Values for an instantiated class
« on: October 19, 2011, 02:50:54 pm »
Hi people,

I've found examples of this question being asked before, but didn't find any answers...

I have a class which includes an enumerated attribute.

I want to show the specific value for that attribute against a specific instance of the class.

However, if I create an instance of the class, it has no attributes, and no method that I can find to add attributes...

How should I show the value of the attribute on a class diagram for a specific instance of a class?
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 12237
  • Karma: +481/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Values for an instantiated class
« Reply #1 on: October 19, 2011, 07:02:16 pm »
Right Click|Advanced|Set Run State"

Geert

Luis J. Lobo

  • EA User
  • **
  • Posts: 252
  • Karma: +0/-0
  • IT Consultant
    • View Profile
Re: Values for an instantiated class
« Reply #2 on: October 19, 2011, 07:02:28 pm »
In the class instance (object), right click and "Advanced | Set Run State..."

Luis J. Lobo

  • EA User
  • **
  • Posts: 252
  • Karma: +0/-0
  • IT Consultant
    • View Profile
Re: Values for an instantiated class
« Reply #3 on: October 19, 2011, 07:03:14 pm »
Ups! Geert was 2" faster than me!!!  ;)

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: Values for an instantiated class
« Reply #4 on: October 20, 2011, 08:12:29 am »
Thanks people,

<hangs head in shame>

I believe that I have been shown this before.

:)

Andy
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."