<div>Hi Feng,</div> <div>Is there anything about the negative application condition? </div> <div> </div> <div>p.s. I may have missed your e-mail about it in the user group.<BR><BR><B><I>Feng Shi <fengshi@isis.vanderbilt.edu></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <META content="Microsoft Word 10 (filtered)" name=Generator> <STYLE> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:blue; text-decoration:underline;} p
{margin-right:0in; margin-left:0in; font-size:12.0pt; font-family:"Times New Roman";} span.EmailStyle18 {font-family:Arial; color:navy;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </STYLE> <DIV class=Section1> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi, Arda,</SPAN></FONT></div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Would you please export the transformation model MI2SI.mga and test model myUML.mga into XML(.xme) file and send me these two files? I cannot directly open the mga file on my machine.</SPAN></FONT></div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE:
10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks,</SPAN></FONT></div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Feng</SPAN></FONT></div> <div class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </div> <div class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original Message-----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> great-users-bounces@list.isis.vanderbilt.edu [mailto:great-users-bounces@list.isis.vanderbilt.edu] <B><SPAN style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Arda Göknil<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, February 09, 2006 10:28 AM<BR><B><SPAN
style="FONT-WEIGHT: bold">To:</SPAN></B> great-users<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: [great-users] negative application condition</SPAN></FONT></div> <div class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </div> <DIV> <div class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Hi,</SPAN></FONT></div></DIV> <DIV> <div class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">In my pattern, I expected the pattern to match with ClassA, ClassB and FeatureA classes in my input model named myUML.mga. I try to decompose the rule into two rules. In the first rule, I define the pattern which specifies that classA aggregates another class (classB) and has a feature. In the second rule, I negated the association between the feature of the ClassA and the
ClassB but nothing changed.<BR><BR><BR><B><I><SPAN style="FONT-WEIGHT: bold; FONT-STYLE: italic">Aditya Agrawal <aditya.agrawal@gmail.com></SPAN></I></B> wrote:</SPAN></FONT></div></DIV> <BLOCKQUOTE style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; MARGIN-TOP: 5pt; PADDING-LEFT: 4pt; MARGIN-BOTTOM: 5pt; PADDING-BOTTOM: 0in; MARGIN-LEFT: 3.75pt; BORDER-LEFT: #1010ff 1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none"> <div class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Hi Feng,<BR><BR>In the example, A, F and C are classes and the arrows are association<BR>classes. <BR><BR>The pattern cardinality of the classes are set to 1 and the pattern<BR>cardinality of the associations between the classes have been shown on the<BR>figure. <BR><BR>In the previous mail I attached a zip containing Arda's original example<BR>with the two cases I mentions. I have also exported the UMT file to
xme.<BR><BR>Thanks,<BR>Adi<BR><BR>-----Original Message-----<BR>From: great-users-bounces@list.isis.vanderbilt.edu<BR>[mailto:great-users-bounces@list.isis.vanderbilt.edu] On Behalf Of Feng Shi<BR>Sent: Monday, February 06, 2006 12:00 PM<BR>To: great-users<BR>Subject: RE: [great-users] negative application condition<BR><BR>Hi Adi,<BR><BR>In the first case mentioned in you email:<BR><BR>Is the "F" association class between ClassA and ClassC and its cardinality<BR>set to 0?<BR><BR>If yes, currently the user needs to set the cardinality of edge A->F and<BR>F->C to 0(not -1).<BR><BR>Thanks,<BR>Feng<BR><BR>-----Original Message-----<BR>From: great-users-bounces@list.isis.vanderbilt.edu<BR>[mailto:great-users-bounces@list.isis.vanderbilt.edu] On Behalf Of Aditya<BR>Agrawal<BR>Sent: Friday, February 03, 2006 1:02 PM<BR>To: great-users<BR>Subject: RE: [great-users] negative application condition<BR><BR>Hi Arda and Feng,<BR><BR>I ran some experiments and realized the
following.<BR><BR>1. The pattern arda drew does not work. However, it is not because the class<BR>called feature is negated. Because that were the case then for your example<BR>the output would show classE but it doesn't.<BR><BR>R-->A--1->F<-1-->C<BR>| ^ <BR>|-----0-----|<BR><BR>This pattern yields the wrong result.<BR><BR><BR>2. A pattern of the form <BR><BR>R-->A--1->B<BR>|<BR>|--0->C<BR><BR>This pattern yields the right result.<BR><BR><BR>>From my understanding the A-->C edge in the first case is handled in a<BR>different part of the pattern matcher than the other edges and I guess we<BR>may not be checking the 0 cardinality correctly there.<BR><BR>Thanks,<BR>Adi<BR><BR><BR>________________________________________<BR>From: great-users-bounces@list.isis.vanderbilt.edu<BR>[mailto:great-users-bounces@list.isis.vanderbilt.edu] On Behalf Of Feng Shi<BR>Sent: Friday, February 03, 2006 11:47 AM<BR>To: great-users<BR>Subject: RE: [great-users] negative
application condition<BR><BR>Hi, Arda,<BR> <BR>I am not sure want you're meaning the "feature", is it another Class? I<BR>could not open your transformation model and would you please send its xme<BR>file to me?<BR> <BR>Thanks,<BR>Feng<BR> <BR>-----Original Message-----<BR>From: great-users-bounces@list.isis.vanderbilt.edu<BR>[mailto:great-users-bounces@list.isis.vanderbilt.edu] On Behalf Of Arda<BR>Göknil<BR>Sent: Friday, February 03, 2006 2:00 AM<BR>To: great-users<BR>Subject: RE: [great-users] negative application condition<BR> <BR>I set the pattern cardinalities of the connection element to "0" but it<BR>negates the element not the association. I am sending my example. I want to<BR>define a pattern that defines a Class A which aggregates Class B and a<BR>feature but Class B should not have the feature of Class A. When I set the<BR>pattern cardinality of the Connection element between the Class B and the<BR>feature, it negates the feature, not the
connection between them.<BR>Thanks,<BR>Arda<BR><BR>Aditya Agrawal <ADITYA.AGRAWAL@GMAIL.COM>wrote:<BR>Hi Arda,<BR> <BR>In your pattern specification you can change the "pattern cardinality"<BR>attribute even on the simple association between B and C. By simple<BR>association I mean an association without a class. <BR> <BR>You can click in the line, change the attribute called "pattern cardinality<BR>to '0' or '-1' " <BR> <BR>I hope this helps.<BR> <BR>Thanks,<BR>Adi<BR> <BR>________________________________________<BR>From: great-users-bounces@list.isis.vanderbilt.edu<BR>[mailto:great-users-bounces@list.isis.vanderbilt.edu] On Behalf Of Arda<BR>Göknil<BR>Sent: Thursday, February 02, 2006 9:15 AM<BR>To: A list for GReAT users to share bugs, fixes an d ideas<BR>Subject: RE: [great-users] negative application condition<BR> <BR>I could not write a good example. I mean, the meta association. I imagine <BR>the A, B and C classes are the meta classes and
the association between them<BR>are the meta association, there is not a meta class named Association. The<BR>setting the pattern cardinality to "-1" is true if there is a Association<BR>entity in the meta class.<BR><BR>Aditya Agrawal <ADITYA.AGRAWAL@GMAIL.COM>wrote: <BR>Hi Arda,<BR> <BR>As far as I remember you can set the pattern cardinality on the association<BR>between B and C to be "-1" instead of setting it on B. <BR> <BR>I don't know if things have changed in the recent past but earlier the value<BR>for negative condition used to be "0" not "-1".<BR> <BR>Could Attila or Feng please comment to this?<BR> <BR>Thanks,<BR>Adi<BR> <BR>________________________________________<BR>From: great-users-bounces@list.isis.vanderbilt.edu<BR>[mailto:great-users-bounces@list.isis.vanderbilt.edu] On Behalf Of Arda<BR>Göknil<BR>Sent: Thursday, February 02, 2006 5:14 AM<BR>To: great-users@list.isis.vanderbilt.edu<BR>Subject: [great-users] negative application
condition<BR> <BR>Hi,<BR>I have a question about the negative application condition in GREAT. In the<BR>user manual, it is said that if you set the pattern cardinality to "-1", you<BR>negate that element. but I want to negate the element for only one<BR>association.<BR>For example, in my pattern I have three classes: classA, classB and classC.<BR>ClassA has a relation with ClassB and ClassC but I do not want ClassB to<BR>have a relation with ClassC. I want to negate ClassC for the<BR>association between ClassB and ClassC. But in my pattern if I set the<BR>pattern cardinality to -1, I can not show the whole pattern in one rule. How<BR>is it possible?<BR>Regards,<BR> <BR>Arda Goknil<BR>________________________________________<BR>To help you stay safe and secure online, we've developed the all new Yahoo!<BR>Security Centre.<BR>_______________________________________________<BR>gre at-users mailing
list<BR>great-users@list.isis.vanderbilt.edu<BR>http://list.isis.vanderbilt.edu/mailman/listinfo/great-users<BR> <BR>________________________________________<BR>Yahoo! Photos - NEW, now offering a quality print service from just 8p a<BR>photo.<BR>_______________________________________________<BR>great-users mailing list<BR>great-users@list.isis.vanderbilt.edu<BR>http://list.isis.vanderbilt.edu/mailman/listinfo/great-users<BR> <BR>________________________________________<BR>Yahoo! Cars NEW - sell your car and browse thousands of new and used cars<BR>online search now <BR>________________________________________<BR>_______________________________________________<BR>great-users mailing list<BR>great-users@list.isis.vanderbilt.edu<BR>http://list.isis.vanderbilt.edu/mailman/listinfo/great-users<BR><BR>_______________________________________________<BR>great-users mailing
list<BR>great-users@list.isis.vanderbilt.edu<BR>http://list.isis.vanderbilt.edu/mailman/listinfo/great-users</SPAN></FONT></div></BLOCKQUOTE> <div class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT> </div> <DIV class=MsoNormal style="MARGIN-LEFT: 0.5in; TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> <HR align=center width="100%" SIZE=1> </SPAN></FONT></DIV> <div class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">To help you stay safe and secure online, we've developed the all new <A href="http://us.rd.yahoo.com/mail/uk/taglines/default/security_centre/*http:/uk.security.yahoo.com/"><B><SPAN style="FONT-WEIGHT: bold">Yahoo! Security Centre</SPAN></B></A>.</SPAN></FONT></div></DIV></BLOCKQUOTE><BR><p>
                <hr size=1><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://us.rd.yahoo.com/mail/uk/taglines/default/messenger/*http://uk.messenger.yahoo.com
">Yahoo! Messenger</a>
<font color="red">NEW</font> - crystal clear PC to PC
<a href="http://us.rd.yahoo.com/mail/uk/taglines/default/messenger/*http://uk.messenger.yahoo.com
">calling worldwide with voicemail
</a></font>