Initialize an object with concret values [message #709117] |
Wed, 03 August 2011 10:14  |
Eclipse User |
|
|
|
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 #716414 is a reply to message #709790] |
Wed, 17 August 2011 07:09  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05481 seconds