Applying model patterns via stereotype

Discussions about systems engineering product SysML functionalities

Moderator: Moderators

Applying model patterns via stereotype

Postby elioral@gmail.com » Tue Jan 02, 2018 11:36 am

I recently switched over to MagicDraw and am trying to do something I once did in Rhapsody. https://www.ibm.com/support/knowledgece ... otype.html

Essentially, you make a profile with a stereotype and model element (package, requirement, block, etc). You create a dependency from the stereotype to the model element. You can then use this stereotype on a new model element (of the same type, block for block, package for package, etc) outside the profile and the element will take on the characteristics of the profile element. For example, I created a requirement X (in profile) which is satisfied by some block A (outside profile) and I made the stereotype Z (in profile) dependent on requirement X. I then applied stereotype Z to requirement G (outside profile) and expected the satisfaction to be created, but it was not. In rhapsody, there is a stereotype called "standardContent" that one applies to the dependency from stereotype Z to requirement X (in profile), which allows this transfer of modeling patterns to happen. But I cannot find a similar thing in MagicDraw. Is there a way to apply such model patterns via stereotypes?

Thanks!
elioral@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Tue Jan 02, 2018 11:26 am

Re: Applying model patterns via stereotype

Postby vinarcik_michael@bah.com » Thu Jan 11, 2018 3:02 pm

I think there are much easier ways to do this...you don't want to be proliferating stereotypes. I'd suggest researching custom properties, structured expressions, and implied relationships. You should be able to create a relationship between the new block and the profile block and then metachain to read all the requirements...I often use realize.

So Block -> Directed relationship of source -> realization ->Target -> Directed relationship of source -> satisfy

should do the trick...and you can union/intersect/etc. to do some other neat things.
vinarcik_michael@bah.com
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:0
Joined: Thu Aug 27, 2015 1:30 pm


Return to SysML

Who is online

Users browsing this forum: No registered users and 1 guest