Book a Demo

Author Topic: instances with different attribute values  (Read 3285 times)

jojoking

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
instances with different attribute values
« on: June 18, 2007, 04:16:28 am »
I'm new to EA, so maybe I'm just being thick...
I've created a "Setting" class which has three attributes - section, entry and value.
I want to create instances of Setting objects on different activity diagrams.  I want to be able to set different attribute values for the instances.
Every time I try to set the value of an attribute, it's reflected across all the instances of the Setting object...
What am I doing wrong?

Joe.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: instances with different attribute values
« Reply #1 on: June 18, 2007, 04:51:46 am »
Hi Joe,

I think you need to distinguish between object state and object run state.

Which one are you using (if either)

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

jojoking

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: instances with different attribute values
« Reply #2 on: June 18, 2007, 04:57:59 am »
Hey thanks for that!  I used the Advanced->Set Run State dialog and now see what to do!

Joe.

peter.zrnko

  • EA User
  • **
  • Posts: 253
  • Karma: +0/-0
    • View Profile
Re: instances with different attribute values
« Reply #3 on: June 18, 2007, 11:01:26 am »
You can have
- one instance in multiple diagrams (copy and paste as link)
- multiple (different) instances in one diagram (or multiple diagrams)
Peter