Hello and thank you for your nice answer !

My motivation indeed exactly is connected with what you mention “The problem is 
if your parts are of the same type”.  I am seeking per-instance (relative to 
IBD) properties values.

The motivation exemplified is as follows : I want to have several instances of 
a “Compressor” block in a block “Energy_production_facility” (the block for 
which I am considering an IBD), with different “power” values as attributes for 
them.

I have also played around what would be possible to do with inheritance to deal 
with attributes Default values overloading, and proceed a little bit as in your 
diagram attached but without success.

I have looked again at SysML spec and “initialValues” compartment do not seem 
mandatory for an implementation of SysML (they use sentences with “may” instead 
of “shall”) : The OMG spec reads : “A compartment with a label of 
“initialValues” *may* be used to show values of properties belonging to a 
containing block. These values override any default values that may have been 
previously specified on these properties on their originally defining block. 
Initial value compartments may be specified within nested properties, which 
then apply *only in the particular usage context defined by the outermost 
containing block*.”


Thank you again for the provided feedback !

Best wishes,

Vincent.

De : [email protected] 
[mailto:[email protected]] De la part de Topcased user 
list where issues are discussed
Envoyé : mardi 30 août 2011 16:01
À : [email protected]
Objet : Re: [Topcased-users] [SysML editors] Internal blocks diagrams / 
subblocks properties values.

Hello Vincent,

creating a diagram like the one in the book you mention is not very difficult 
(see attachment for an example, created in Topcased 4.3). The problem is if 
your parts are of the same type, because you cannot (at least in Topcased 4.3) 
assign different values to properties of the same block (since property values 
are linked to the block and not to the part). This problem is known to the 
topcased team, but I am not sure if there is already a plan to address it. What 
this means is that what you need is a separate block to type each part. Of 
course, this part-specific blocks can be generalizations from a common block, 
which is a workaround, though time-consuming and not very elegant...

Other than that, about making the diagram look *exactly* like in the example in 
Friedenthals book, I think we cannot show compartments in IBDs in Topcased in 
the traditional editor, nor am I aware of specific "Initial values" 
compartments even for the BDDs.

That said, I don't fully understand what you are trying to do with your 
workaround. Normally you can just create a property for your block (either in a 
BDD using the palette or in the outline), assign a "default" in the Advanced 
properties (don't forget to type the property) and then you can already drag 
the property to your part in the IBD. But if you explain a little bit more what 
you are trying to do I could try to comment on that.

Best regards
Rodrigo

________________________________
From: Topcased user list where issues are discussed 
<[email protected]>
To: [email protected]; [email protected]
Sent: Tuesday, August 30, 2011 11:55 AM
Subject: Re: [Topcased-users] [SysML editors] Internal blocks diagrams / 
subblocks properties values.
Hello,

A Workaround I am currently considering is the following :

  Consider :

-          Block B1
-          Block B2 : subblock of B1, having a Property p1 : Real

 To assign a value to the property B2::p1, add a property, say p2, to B1 of 
type Real also.

 Drag  B2.p1, B1.p2 to the internal block diagram for Block1.

Add a connector between B1.p2 and B2.p1. It will end up with having a 
NesterConnectorEnd to B2.p1, which does the trick

And set the default value of B1.p2 to, say 10.345  (use for the that the 
Properties view and in the Specification tab, select e.g “Literal string” and 
set the value appropriately).

Can someone comment on that ? Do you think that’s a correct way to proceed ?

Best regards,

Vincent.

De : [email protected] 
[mailto:[email protected]] De la part de Topcased user 
list where issues are discussed
Envoyé : lundi 29 août 2011 18:13
À : [email protected]
Objet : [Topcased-users] [SysML editors] Internal blocks diagrams / subblocks 
properties values.

Dear all,

  I am currently trying to perform a SYSML IBD and trying to assign values to 
the properties of the top-block for the IBD or either the subblocks.

  I can’t manage to especially figure out  how to make a diagram as the one 
described in the “A Practical Guide to SysML” book by Friedentahl et al. 
http://books.google.com/books?id=Ey1j1R3zq30C&lpg=PP1&dq=sysml&pg=PA144#v=onepage&q&f=false
    (c.f page 143), in which values appear in an “initialValues” compartment.

  I have browsed the present mailing-list archive to dig on this topic. I came 
across that post :

  
http://lists.gforge.enseeiht.fr/pipermail/topcased-users/2009-March/014655.html

There was the mention of a major evolution of SysML Editor that would enable to 
perform this kind of things. Has this been already realized and I’m currently 
missing something ? Or is it still a plan ? Maybe In Papyrus ?  (btw I think 
the same question from this e-mail would apply to it currently).

Thank you for your help,

Best,

V. Seignole
GDF SUEZ




GDF SUEZ Mail Disclaimer: http://www.gdfsuez.com/disclaimer/disclaimer-fr.html


GDF SUEZ Mail Disclaimer: http://www.gdfsuez.com/disclaimer/disclaimer-fr.html

_______________________________________________
Topcased-users mailing list
[email protected]<mailto:[email protected]>
http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users


GDF SUEZ Mail Disclaimer: http://www.gdfsuez.com/disclaimer/disclaimer-fr.html

_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users

Reply via email to