Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Initialize an object with concret values
Initialize an object with concret values [message #709117] Wed, 03 August 2011 10:14 Go to next message
Andreas Burger is currently offline Andreas Burger
Messages: 14
Registered: June 2011
Junior Member
Hello,

we want to create several instances of a class with different property values. Is this possible?
The only thing we found out so long is to set the default value of a property but this cause the problem that all instances of this class has the same values for the property.

Re: Initialize an object with concret values [message #709790 is a reply to message #709117] Thu, 04 August 2011 05:59 Go to previous messageGo to next message
Miriam  is currently offline Miriam
Messages: 29
Registered: April 2011
Junior Member
I have exactly the same problem, I couldn't explain it better.
Thanks for help
Re: Initialize an object with concret values [message #716414 is a reply to message #709790] Wed, 17 August 2011 07:09 Go to previous message
Miriam  is currently offline Miriam
Messages: 29
Registered: April 2011
Junior Member
Hi Andreas,
I could initialize an object with concrete values, hope this could help.
In my case, I have a slot of type <Literal Intger>, it gives me a choice only between 0 or 1, I take for example 0.
Close the model.di, go to model.uml, under the <slot> you will find <Literal Integer> 0, go to properties and change the value with your concrete one.
save, and reopen the model.di, it works for me!

Miriam
Previous Topic:change and update values programmatically
Next Topic:Request about customize palette
Goto Forum:
  


Current Time: Mon Jul 28 10:29:58 EDT 2014

Powered by FUDForum. Page generated in 0.04208 seconds