Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Cannot set up InitialValues in SysML model(I try, without success, to define initial values for part properties values)
Cannot set up InitialValues in SysML model [message #1231756] Wed, 15 January 2014 10:16 Go to next message
Thomas Bardot is currently offline Thomas BardotFriend
Messages: 5
Registered: January 2014
Junior Member
Let the following example.
I have two blocks : block_A and block_B.
Block_B has a property called "Id" typed as an integer.
I added two parts to block_A: part_A1 and part_A2. These parts are both typed with block_B. In other words, part_A1 and part_A2 are two instances of block_B and are owned by Block_A.

I would like to define a different value of Id for each instance of block_B. So I try to specified a initial value for the property Id of part_A1 and part_A2.
Indeed, in the reference book "A practical guide to SysML", §7.3 p.141 : Quote:
"The initial values for a part can be specified using a dedicated compartment labeled initial Values. The initial values over-ride the default values of the properties in the block that types the part."


Can I specify initial values for a part property with Papyrus?
Re: Cannot set up InitialValues in SysML model [message #1232126 is a reply to message #1231756] Thu, 16 January 2014 09:28 Go to previous messageGo to next message
Klaas Gadeyne is currently offline Klaas GadeyneFriend
Messages: 165
Registered: July 2009
Senior Member
Thomas Bardot wrote on Wed, 15 January 2014 05:16
Let the following example.
I have two blocks : block_A and block_B.
Block_B has a property called "Id" typed as an integer.
I added two parts to block_A: part_A1 and part_A2. These parts are both typed with block_B. In other words, part_A1 and part_A2 are two instances of block_B and are owned by Block_A.

I would like to define a different value of Id for each instance of block_B. So I try to specified a initial value for the property Id of part_A1 and part_A2.
Indeed, in the reference book "A practical guide to SysML", §7.3 p.141 : Quote:
"The initial values for a part can be specified using a dedicated compartment labeled initial Values. The initial values over-ride the default values of the properties in the block that types the part."


Can I specify initial values for a part property with Papyrus?


Edit:
- Can you specify initial values: Yes (but somewhat cumbersome to create)
- Can you show them in a dedicated compartment (IBD/BDD): No

More info: [https://bugs.eclipse.org/bugs/show_bug.cgi?id=347941]

HTH,

Klaas

[Updated on: Thu, 16 January 2014 12:56]

Report message to a moderator

Re: Cannot set up InitialValues in SysML model [message #1232161 is a reply to message #1232126] Thu, 16 January 2014 10:33 Go to previous message
Thomas Bardot is currently offline Thomas BardotFriend
Messages: 5
Registered: January 2014
Junior Member
Ok, thanks. I will try to use InstanceSpecification instead.

Thomas
Previous Topic:Parse UML2 diagrams with Papyrus
Next Topic:Reverse Engineering Java Code into Diagrams
Goto Forum:
  


Current Time: Fri Mar 29 12:29:31 GMT 2024

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

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

Back to the top