Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sun Jul 13 20:28:55 EDT 2025

Powered by FUDForum. Page generated in 0.05481 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top