<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Malgun Gothic";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:"Malgun Gothic";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-autospace:none;
        word-break:break-hangul;
        font-size:10.0pt;
        font-family:"Malgun Gothic";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Malgun Gothic";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Malgun Gothic";}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=KO link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi, I’m a GME beginner to make some DSME.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I’m just trying to designing a metamodel which has its own purposes, however, I got some problems when I assigned some model-constraints into my model.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Let’s think about a metamodel which includes “ A<<Model>> “ , “ B <<Model>> “ , “ AtoB <<Connection>> “. (simply for helping the understanding)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Every Model can be associated by “ AtoB <<Connection>> “. ( like A<<Model>> can associated with B<<Model>>, B<<Model>> also can be associated with A<<Model>> )<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Moreover, only A<<Model>> has enumerate attribute called “ state:enum “. state<<EnumAttribute>> has “ One “, “ Two ” values.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I want to describe a model-constraint as further below.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>“ If AtoB <<Connection>> connected Some Model ( it can be A<<Model>> or B<<Model>>) and If the connected Model has state<<EnumAttribute>> values which has “One” value<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>then informing error message to the designer. “<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Actually I was used a OCL expression to make similar model constraint like <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>“ If AtoB <<Connection>> connected Model which is A<<Model>> then informing error message to the designer “<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>The OCL constraint is “self.connectionPoints("dst")->theOnly().target().name()<>"A"” like this.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>However, the mentioned one is not easy to describe…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>How can I make a constraint rule in OCL which I mentioned ?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Any advice can be helpful to my research. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thank you.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US><o:p> </o:p></span></b></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>