Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - RealPecho

Pages: 1 [2]
16
thanks eve, but it is not clear for me.
I defined both stereotypes as Abstract but with the spezialization is not clear what do you mean. I defined an enumeration and i used the same enumeration in both stereotypes. in Profile Helper, under "Tagged Values" i added in both the same enumaration.

another picutre of the properties of the instanz:

https://github.com/RealPecho/MDG/blob/main/properties_instanz.png

the instanz is relationed with the parental, but the attributes are not taken over.

Maybe this is not right, but it was working in the old technology and we need unfortunately in this way to avoid a mismatch

17
I did in this way, but it is not  really the same.

If I add a diagram to the model, i have to go in this way througt the SysML perspective and choose for example InternalBlock. But we change the names of the diagrams to get more specific description.

But I think, there is no another way to do this

19
I think he means like in SysML MDG

20
did you solve this issue? i am also interesting in the solution

21
I create my first MDG and try to apply some ideas from my last company. Most of the things are already working but i have problems with the instances.

I define stereotype that extends an activity. I added some tagged values from type enumeration to the stereotype and configured the instance behavior as "instance" and give the name of another stereotype. (see screenshots)

I create also the stereotype for the instance with the same tagged values.

Problem:

I add to a diagram an activity element with the defined stereotype and change the value of the tagged value. Then I add an instance of this element to the diagram, but the instance doesn't take over the new value for the tagged values of the element.

I know, that this is possible because is working in my last company, but i don't know what i am doing wrong. i compared the 2 xml-files, but they are identical




https://github.com/RealPecho/MDG

Stereotype for activity:

Code: [Select]
<Stereotype name="BWSysDevActivity" instanceMode="Instance" instanceType="BWSysDev::BWSysDevActionCallBehavior" notes="" cx="0" cy="0" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo>
<Apply type="Activity">
<Property name="_HideStype" value="BWSysDevActivity"/>
<Property name="isReadOnly" value="false"/>
<Property name="isSingleExecution" value=""/>
<Property name="parameterName" value=""/>
<Property name="postcondition" value=""/>
<Property name="precondition" value=""/>
<Property name="_makeComposite" value="false"/>
<Property name="_UCRect" value="0"/>
</Apply>
</AppliesTo>
<TaggedValues>
<Tag name="ElementType" type="enumeration" description="" unit="" values="Mechatronical,Electrical,Mechanical,Software,Unknown" default="Unknown"/>
...
</TaggedValues>
</Stereotype>

Stereotype for instance:

Code: [Select]
<Stereotype name="BWSysDevActionCallBehavior" instanceMode="Instance" notes="" cx="0" cy="0" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo>
<Apply type="Action">
<Property name="context" value=""/>
<Property name="effect" value=""/>
<Property name="kind" value="CallBehavior"/>
<Property name="_HideStype" value="BWSysDevActionCallBehavior"/>
</Apply>
</AppliesTo>
<TaggedValues>
<Tag name="ElementType" type="enumeration" description="" unit="" values="Mechatronical,Electrical,Mechanical,Software,Unknown" default="Unknown"/>
...
</TaggedValues>
</Stereotype>

Pages: 1 [2]