<DIV>>>In the house2order example the MakeOrder3/MakeOrder rule has its <BR>>>attribute "For All?" set to false, which means that the pattern matching <BR>>>stops after it found the first match. This is why the MakeOrder rule <BR>>>will find only one room.<BR></DIV> <DIV>I mean the third rule in the House2Order example. In the second rule the 'ForAll' attribute is set to false as you said. But in the third rule, the ForAll attribute is not set to false and the quantitiy attribute of Order is calculated according to the number of the matches and the attribute is five, not ten.</DIV> <DIV>In my model, I have one parent class and two sub classes. When I run my multiple inheritance pattern, I expected only one match but there are two different matches. When I specify the pattern cardinality of child classes as 2..* and the pattern cardinality of parent classes as 1, I expect one parent class and at least two child class in one match. If there
is a second multiple inheritance case in the model, it will return in the second match. And in my case when the number of the child classes which are inherited from the same class increases, I expect the number of the matches not to increase but it also increases.</DIV> <DIV>Am I missing something?<BR><BR><B><I>Attila Vizhanyo <viza@isis.vanderbilt.edu></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">The pattern cardinality attribute of pattern objects in GReAT has the <BR>following semantics:<BR>- the cardinality attribute set to 0 means negative application <BR>condition, that is, the pattern matching returns true, if the specified <BR>pattern could not be found in the input graph.<BR>- any other value than 0 corresponds to 'positive' application <BR>condition, with no regard to pattern cardinality. The pattern matching <BR>returns true, if the specified pattern can be found in
the input graph.<BR><BR>Therefore if you specify any non-zero pattern cardinality, the pattern <BR>matching will return with as many matches as many exists for the given <BR>input and pattern graph.<BR><BR>In the house2order example the MakeOrder3/MakeOrder rule has its <BR>attribute "For All?" set to false, which means that the pattern matching <BR>stops after it found the first match. This is why the MakeOrder rule <BR>will find only one room.<BR><BR>HTH,<BR>Attila<BR><BR><BR><BR>Arda Göknil wrote:<BR><BR>> Hi Daniel,<BR>> It helped me to fix my problem but now I have another problem. I am <BR>> trying to implement a basic transformation between UML and Java models <BR>> based on very simple UML and Java meta models. In one of my rules, I <BR>> want to define the pattern of multiple inheritance. In my structure, I <BR>> have one class called parent class whose cardinality pattern is 2..* <BR>> and one class called child class whose cardinality pattern is 1.
These <BR>> two classes are connected each other via an connection named <BR>> Inheritance. But in the match of the rule, I have two matches instead <BR>> of one appropriate match for only one multiple inheritance case. For <BR>> example if the model has a parent class and two subclasses, the engine <BR>> returns two matches.<BR>> I am not sure about the use of cardinality patterns but when I read <BR>> the Great User Manual, It does not include anything about the use of <BR>> cardinality patterns. In the House2Order example, there is two Room <BR>> class in the House2Order example and there is only one match insted of <BR>> two matches if there is two room which have a room. Is it abour the <BR>> cross productions or something else?<BR>><BR>> */Daniel Balasubramanian <DANIEL@ISIS.VANDERBILT.EDU>/* wrote:<BR>><BR>> Hi Arda,<BR>><BR>> That exception means that one of your input models cannot be<BR>> opened properly, perhaps
because you created it with a certain<BR>> paradigm, and then somehow modified that paradigm. To correct the<BR>> error, simply open both of the input models in GME, and it will<BR>> give you a message saying something like, "The model is not in the<BR>> current paradigm, would you like to upgrade?" - say "Yes", and the<BR>> model will be upgraded to the current paradigm. Save the model,<BR>> then close GME, and try re-running your transformation. (Be sure<BR>> to do this for all of your input models)<BR>><BR>> Please let me know if this does not f ix the problem.<BR>><BR>> Thanks,<BR>> Daniel<BR>><BR>><BR>><BR>> -----Original Message-----<BR>> From: great-users-bounces@list.isis.vanderbilt.edu on behalf of<BR>> Arda Göknil<BR>> Sent: Thu 11/24/2005 6:27 AM<BR>> To: great-users<BR>> Cc:<BR>> Subject: [great-users] Re: problem about running the transformation<BR>> Hi,<BR>> I configure the path ("C:\Program
Files\Microsoft Visual<BR>> Studio\VC98\Bin"). And I can run the samples in GREAT but when I<BR>> try to invoke my example, I get an exception (Exception: Com<BR>> Exception: The paradigm is not registered). Now what should I do???<BR>><BR>> Attila Vizhanyo wrote:<BR>><BR>> Hi Arda,<BR>><BR>> We have a great-users list, so please direct your great-related<BR>> questions to great-users@list.isis.vanderbilt.edu.<BR>><BR>> When you run the GReAT Master Interpreter make sure you have a<BR>> valid config file name (with absolute path) specified in the top<BR>> of the dialog.<BR>> Use the “R” button to generate a config file path that points to<BR>> the transformation folder.<BR>> < BR>The problem is not necessarily related to the config file<BR>> opening process.<BR>> If you use GReAT with VC6, make sure that the location of<BR>> vcvars32.bat is in path. (e.g. "C:\Program Files\Microsoft Visual<BR>>
Studio\VC98\Bin")<BR>> If you use GReAT with VC71, make sure that the location of<BR>> vcvars32.bat is in path. (e.g. "C:\Program Files\Microsoft Visual<BR>> Studio .NET 2003\Common7\Tools”)<BR>><BR>> HTH,<BR>> Attila<BR>><BR>> -----Original Message-----<BR>> From: gme-users-bounces@list.isis.vanderbilt.edu<BR>> [mailto:gme-users-bounces@list.isis.vanderbilt.edu] On Behalf Of<BR>> Arda Göknil<BR>> Sent: Wednesday, November 23, 2005 3:34 AM<BR>> To: gme-users<BR>> Subject: [gme-users] problem about running the transformation<BR>><BR>> Hi,<BR>> I am trying to develop a transformation from UML models to Java<BR>> models by using Great. (It is my first experience in GREAT.)<BR>> When I interpret the transformation by using GreAt Master<BR>> Interpreter, there is no problem. But when I try to invoke the<BR>> Graph Rewrite Engine, a message box appears and throws an<BR>> exception. (Exception: Com Exception: File could not
be opened).<BR>> This exception is thrown when the engine is trying to load the<BR>> NewConfiguration.mga. How can I solve this problem?<BR>> And also when I try to to invoke the engine on the House2Order<BR>> sample of Great, there is an error which tells to add /Vc98/bin<BR>> directory to system path while the engine is trying to load the<BR>> config.mga file.<BR>><BR>> Arda Goknil<BR>><BR>><BR>> _____<BR>><BR>> To help you stay safe and secure online, we've developed the all<BR>> new Yahoo! Security Centre.<BR>><BR>><BR>><BR>> _____<BR>><BR>> Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide<BR>> with voicemail<BR>><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>>
------------------------------------------------------------------------<BR>> Yahoo! Model Search <BR>> <HTTP: model-search hot uk.news.yahoo.com *http: modelsearch default taglines uk mail us.rd.yahoo.com /><BR>> - Could you be the next catwalk superstar? Check out the competition <BR>> <HTTP: model-search hot uk.news.yahoo.com *http: modelsearch default taglines uk mail us.rd.yahoo.com /><BR>> now<BR>><BR>>------------------------------------------------------------------------<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>_______________________________________________<BR>great-users mailing list<BR>great-users@list.isis.vanderbilt.edu<BR>http://list.isis.vanderbilt.edu/mailman/listinfo/great-users<BR></BLOCKQUOTE> <DIV><BR></DIV><p>
                <hr size=1><font face="Arial" size="2">How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos. <a href="http://us.rd.yahoo.com/mail/uk/taglines/default/photos/*http://uk.photos.yahoo.com/"><b>Get Yahoo!
Photos</b></a></font>