|Re: How do I create the SysML "allocated from" attribute in a block [message #894059 is a reply to message #893800]
||Fri, 06 July 2012 14:02
| Klaas Gadeyne
Registered: July 2009
Gunter Schranz wrote on Thu, 05 July 2012 10:16|
I started to work with Papyrus and SysML. I have a question concerning the "allocated from" compartment in the block definition diagram. Is this notation possible in Papyrus? I can't find this option. I want to connect an activity diagram with a block.
Yes, although (to my knowledge) only suboptimally supported. There is no dedicated "AllocatedFrom" compartment, but there is a specific compartment to display tagged values from stereotypes which you can use (see the properties window -> appearance -> profile). IMO the problems with the current approach are:
- There's no preference to show this stereotype compartment and some of its content "by default", which means you'll have to do it manually for each and every block
- Setting the allocatedTo/allocatedFrom property can only be done via allocation tables (and not via the tagged value property). This means that, you have to create the block, then set the stereotype, and display the appropriate value, create the allocation relationship in a table, and refresh the diagram. Those are an awful lot of steps to perform...
Note that I'm talking about the version that is shipped with topcased 5.2 here, don't know if it got any better with 0.9...
Another Problem I have is, when I define my own profile, with a stereotype <<myStereotyp>> which uses a block from SysML for inheritance and I draw this in a block definition diagram I always have <<block>> also in shown at the top of the block. Is it possible to remove this or did I do something wrong when I created the profile? If I am not displaying the applied stereotypes, <<myStereotyp>> is gone, but <<block>> is still there.
Same mechanism (via the stereotype appearances), same problem: you'll have to do this for every block AFAIK.
Powered by FUDForum
. Page generated in 0.01852 seconds