Book a Demo

Author Topic: How to populate an object in EA  (Read 3224 times)

Rosa

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
How to populate an object in EA
« on: January 27, 2005, 08:51:57 pm »
We have created our business model, logical model and classes. How do we create an instance of a class (the object) and populate it with real world values, so that we can have a real picture of contents and links? Thanks.

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: How to populate an object in EA
« Reply #1 on: January 27, 2005, 09:00:12 pm »
Hi,

1. How do you create an object, the instance of a class?
You can either simply drag the class from the Project View onto the diagram and when asked, select the option paste "as Instance of Element (Object)". If the question does not show up, just hold CTRL while dragging and dropping the class onto the diagram. Or you can simply place new Object onto the diagram, right click on it and select "Set Instance Classifier..." in the context menu, then select the Class your object should instantiate.

2. How do you populate the object with real world values?
Once you have created the object and specified the classifier, simply right-click on the object and select "Set Run State" from the context menu.

Hope this helps!

Bruno



Quote
We have created our business model, logical model and classes. How do we create an instance of a class (the object) and populate it with real world values, so that we can have a real picture of contents and links? Thanks.


Rosa

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: How to populate an object in EA
« Reply #2 on: January 27, 2005, 09:26:46 pm »
Thanks Bruno. It helped a lot!

Quote
Hi,

1. How do you create an object, the instance of a class?
You can either simply drag the class from the Project View onto the diagram and when asked, select the option paste "as Instance of Element (Object)". If the question does not show up, just hold CTRL while dragging and dropping the class onto the diagram. Or you can simply place new Object onto the diagram, right click on it and select "Set Instance Classifier..." in the context menu, then select the Class your object should instantiate.

2. How do you populate the object with real world values?
Once you have created the object and specified the classifier, simply right-click on the object and select "Set Run State" from the context menu.

Hope this helps!

Bruno





Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: How to populate an object in EA
« Reply #3 on: January 27, 2005, 09:38:30 pm »
You're welcome!