<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" 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 11 (filtered medium)">
<title>Message</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<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:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        layout-grid:15.6pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1 style='layout-grid:15.6pt'>
<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>Hi, <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'> I have figured
out the inconsistence. It’s kinda complicated. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-indent:4.5pt'><font size=1 color=navy
face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial;
color:navy'>In my meta-model, I have a ConnectorRef<<reference>>
that refers to a TransConnector<<Atom>> , then, the generated
codes regarding to this dependency looks like this:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>XXXXExtension.h<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>……..<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>class ConnectorRefImpl;<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>DECLARE_BONEXTENSION2(
BON::Reference, TransConnector, ConnectorRefImpl, ConnectorRef ); <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>…..<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>//*******************************************************************<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>//
C L A S <st1:place w:st="on">S
ConnectorRefImpl</st1:place><o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>//*******************************************************************<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>class
ConnectorRefImpl :<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> virtual
public BON::ReferenceImpl,<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> public
TransConnectorImpl <o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>{<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>public:<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> //<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> //
ref getters<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> virtual
TransConnector
getTransConnector();<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> ///BUP<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> //Class
not found<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> ///EUP<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>};<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>But when I
compiled these codes, the compiler was complaining that:<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>//=================================================================================================<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>E:\course\GIOTTO_PRJ\Interpreters\GIOTTO\ECSL_DPBonExtension.h(1305)
: error C2250: 'ConnectorRefImpl' : ambiguous inheritance of
'BON::ReferenceImpl::getStereotype'<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
C:/Program Files/GME/sdk/BON/BONImpl.h(1077) : see declaration of
'ReferenceImpl'<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>E:\course\GIOTTO_PRJ\Interpreters\GIOTTO\ECSL_DPBonExtension.h(1305)
: error C2250: 'ConnectorRefImpl' : ambiguous inheritance of
'BON::AtomImpl::getStereotype'<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
C:/Program Files/GME/sdk/BON/BONImpl.h(845) : see declaration of 'AtomImpl'<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>Blah, blah
blah <o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>//==================================================================================================<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>As it turned out,
TransConnectorImpl inherited from BPM::AtomImpl, which has the same getStereotype
() member function as BON::ReferenceImpl does, which is how ambiguity happens.(If
the getStereoType() of both BON::AtomImpl and BON::ReferenceImpl are defined in
their parent, which is BON::FCOImpl, this will not happen, because we are using
virtual inheritance, which can avoid “dreaded diomond “)<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>So I incorrectly
removed the inheritance relation such that it looks like this:<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>class
ConnectorRefImpl :<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> virtual
public BON::ReferenceImpl,<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>//
public TransConnectorImpl <o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>And it’s compiling, but it violated the
compatibility defined previously in </span></font><font size=1 color=navy
face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial;
color:navy'>DECLARE_BONEXTENSION2( BON::Reference, TransConnector,
ConnectorRefImpl, ConnectorRef ); <o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>That’s
why I got the run-time error that says “incompatibility” <o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>The way around
it of course could be that we do not generate extender classes for ConnectorRef<<Reference>>,
but what if we wanted to keep this? How should I change my class structure? Do
you or any guys have any idea? <o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>Ming<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><b><font size=2
face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma;
font-weight:bold'>From:</span></font></b><font size=2 face=Tahoma><span
lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
gme-users-bounces@list.isis.vanderbilt.edu
[mailto:gme-users-bounces@list.isis.vanderbilt.edu] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Zoltan Molnar<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, April 09, 2004 2:19
PM<br>
<b><span style='font-weight:bold'>To:</span></b> 'A list for GME users to share
thoughts and discuss bugs and fixes.'<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [gme-users] BON
Extender Interpreter Problem</span></font><font size=3><span lang=EN-US
style='font-size:12.0pt'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal align=left style='text-align:left'><font size=2
face="Times New Roman"><span lang=EN-US style='font-size:10.5pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal align=left style='text-align:left'><font size=2 color=blue
face=Arial><span lang=EN-US style='font-size:10.0pt;font-family:Arial;
color:blue'>Hi,</span></font><font size=3><span lang=EN-US style='font-size:
12.0pt'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal align=left style='text-align:left'><font size=2 color=blue
face=Arial><span lang=EN-US style='font-size:10.0pt;font-family:Arial;
color:blue'>Could you please send the metamodel (exported into .xme
format) the files are generated from.</span></font><font size=3><span
lang=EN-US style='font-size:12.0pt'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal align=left style='text-align:left'><font size=2 color=blue
face=Arial><span lang=EN-US style='font-size:10.0pt;font-family:Arial;
color:blue'>Till then i could suggest checking you meta-model for
corectness by interpreting it with the MetaGME2004 interpreter and
checking the log file (generated in the same directory as the .xmp file).</span></font><font
size=3><span lang=EN-US style='font-size:12.0pt'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal align=left style='text-align:left'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal align=left style='text-align:left'><font size=2 color=blue
face=Arial><span lang=EN-US style='font-size:10.0pt;font-family:Arial;
color:blue'>Br, Zoli</span></font><font size=3><span lang=EN-US
style='font-size:12.0pt'><o:p></o:p></span></font></p>
</div>
<blockquote style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'>
<p class=MsoNormal align=left style='margin-bottom:12.0pt;text-align:left'><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>-----Original
Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
gme-users-bounces@list.isis.vanderbilt.edu
[mailto:gme-users-bounces@list.isis.vanderbilt.edu] <b><span style='font-weight:
bold'>On Behalf Of </span></b>xiong,ming<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, April 09, 2004 2:11
PM<br>
<b><span style='font-weight:bold'>To:</span></b> gme-users@list.isis.vanderbilt.edu<br>
<b><span style='font-weight:bold'>Subject:</span></b> [gme-users] BON Extender
Interpreter Problem</span></font><font size=3><span lang=EN-US
style='font-size:12.0pt'><o:p></o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>Hi, GMEers:<o:p></o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'> I’m currently
using the BON extender interpreter in GME 4 (released on 03/17/2004) to
generate the classes and dummy codes for my interpreter. It compiles perfectly
but when I try to launch it from GME, it’s giving me an invalid error. To
be specific, it says:<o:p></o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>Exception Kind:
Utils::Exception<o:p></o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>Exception Message: Invalid
BON Extension class! Check meta-kind compatibility for HardwareSheet.<o:p></o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>(Note: HardwareSheet is
the model from which the interpreter starts. )<o:p></o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>I tried other models, and
the same exception is raised.<o:p></o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>I checked the generated
file then but found nothing that’s not compatible. Since I didn’t
change anything in those files and haven’t yet inserted my codes, it
seems strange. Then I tried to debug the dll, but as it turned out, the
exception is raised before the program entered InvokeEx, so there’s no
way I could track down the bug. <o:p></o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>Have you ever encountered
similar problems? What could be the possible course? Need your suggestions
badly.<o:p></o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>Thanks<o:p></o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>Ming<o:p></o:p></span></font></p>
<p class=MsoNormal style='layout-grid-mode:char'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
</blockquote>
</div>
</body>
</html>