Skip to main content


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 14:14 Go to next message
Andreas Burger is currently offline Andreas BurgerFriend
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 09:59 Go to previous messageGo to next message
Miriam  is currently offline Miriam Friend
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 11:09 Go to previous message
Miriam  is currently offline Miriam Friend
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: Sun Sep 22 22:06:01 GMT 2024

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

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

Back to the top