<html>

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">

<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;}
span.EmailStyle19
        {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>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Adi,</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Sorry for the slow reply. Please look at
the registerCustomClasses example from SFBONComponent.java</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>For the addCustom* methods, the first
argument is the GME kindname your custom class will represent in your
interpreter, and the second argument is the java classname for your custom
class. The custom class must inherit from the Java BON basetype classes (directly
or indirectly). If you want to use your custom classes, you must use the
addCustom* methods inside the registerCustomClasses method. When your Java BON
interpreter starts up, the JBuilderFactory will take each object in your GME
diagram and instantiate a Java Object. If you do not use the addCustom*
methods, the Factory will only give you instances of Java BON base types (JBuilderModel,
etc).</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>In the example below, whenever there is a
Primitive GME object, you will get an sfInterpreter.SFPrimitive Java object in
your interpreter. If you comment out that line, and run it again, you will just
get an instance of JBuilderModel.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=blue
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>public</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> <font color=blue><span
style='color:blue'>void</span></font> registerCustomClasses() </span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JBuilderFactory.addCustomModel(&quot;Primitive&quot;,&quot;sfInterpreter.SFPrimitive&quot;);</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JBuilderFactory.addCustomModel(&quot;Compound&quot;,&quot;sfInterpreter.SFCompound&quot;);</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JBuilderFactory.addCustomAtom(&quot;InputSignal&quot;,&quot;sfInterpreter.SFInputSignal&quot;);</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JBuilderFactory.addCustomAtom(&quot;OutputSignal&quot;,&quot;sfInterpreter.SFOutputSignal&quot;);</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JBuilderFactory.addCustomAtom(&quot;Param&quot;,&quot;sfInterpreter.SFParam&quot;);</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JBuilderFactory.addCustomAtom(&quot;InputParam&quot;,&quot;sfInterpreter.SFInputParam&quot;);</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JBuilderFactory.addCustomAtom(&quot;OutputParam&quot;,&quot;sfInterpreter.SFOutputParam&quot;);</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JBuilderFactory.addCustomConnection(&quot;DataflowConn&quot;,&quot;sfInterpreter.SFDataflowConn&quot;);</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JBuilderFactory.addCustomConnection(&quot;ParameterConn&quot;,&quot;sfInterpreter.SFParameterConn&quot;);</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hope this helps,</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Brian</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
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>Adi Mallikarjuna
Reddy V<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, October 24, 2006
9:29 AM<br>
<b><span style='font-weight:bold'>To:</span></b> gme-users<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [gme-users]
Registering Custom Classes</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
.5in'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Hi
Jesper,<br>
<br>
Thank you for reply. I have looked into that example earlier, but I didn't get
anything from it. My requirement is to write one more class extra apart from
the class which extended from <font color=red><span style='color:red'>BONComponent</span></font>.
I found <font color=red><span style='color:red'>addCustom*()</span></font> APIs
in <font color=red><span style='color:red'>JBuildFactory </span></font>class. I
didn't how to use them to add&nbsp; the class. First of all is it compulsory to
register this extra class I was trying to add?<br>
<br>
Regards<br>
Adi</span></font></p>

<div>

<p class=MsoNormal style='margin-left:.5in'><span class=gmailquote><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>On 10/24/06, <b><span
style='font-weight:bold'>Berthing Jesper</span></b> &lt;<a
href="mailto:f35594@danfoss.com">f35594@danfoss.com</a>&gt; wrote:</span></font></span></p>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=blue face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>Significance, it depends
on what you want to do and how you want to use it? I used it in a similarly way
like the example below to transverse the models objects.</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=blue face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>Look into the folder
below on your PC there is a good example that shows the use of this</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=blue face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>C:\Program
Files\GME\Paradigms\SF\JavaBONSFExample\sfInterpreter</span></font></p>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=blue face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>\Jesper</span></font></p>

</div>

<div class=MsoNormal align=center style='margin-left:.5in;text-align:center'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
.5in'><b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:
Tahoma;font-weight:bold'>From:</span></font></b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'> <a
href="mailto:gme-users-bounces@list.isis.vanderbilt.edu" target="_blank"
onclick="return top.js.OpenExtLink(window,event,this)">gme-users-bounces@list.isis.vanderbilt.edu</a>
[mailto:<a href="mailto:gme-users-bounces@list.isis.vanderbilt.edu"
target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gme-users-bounces@list.isis.vanderbilt.edu</a>]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Adi Mallikarjuna
Reddy V<br>
<b><span style='font-weight:bold'>Sent:</span></b> 24. oktober 2006 14:04<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> [gme-users] Registering
Custom Classes</span></font></p>

<div><span id="q_10e7a7f0521ab841_1">

<p class=MsoNormal style='margin-left:.5in'><span class=e><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi all,</span></font></span><br>
<span class=e>I would like to add new class to my interpreter source that is
written in Java. I found one method </span><br>
<br>
<span class=e><font color="#3333ff"><span style='color:#3333FF'>public void
registerCustomClasses()</span></font></span><font color="#3333ff"><span
style='color:#3333FF'><br>
<span class=e>{</span><br>
<br>
<span class=e>}</span><br>
<br>
</span></font><span class=e>I would like to know what is the significance of
this in the Interpreter. How to add/register new class into the interpreter
with this method?</span><br>
<br>
<span class=e>Example will be helpful.</span><br>
<br>
<span class=e>Regards</span><br>
<span class=e>Adi</span><br>
<br>
</p>

</div>

</div>

</span>

<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
.5in'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
_______________________________________________<br>
gme-users mailing list<br>
<a href="mailto:gme-users@list.isis.vanderbilt.edu"
onclick="return top.js.OpenExtLink(window,event,this)">gme-users@list.isis.vanderbilt.edu
</a><br>
<a href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users"
target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</a><br>
<br>
</span></font></p>

</div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>&nbsp;</span></font></p>

</div>

</body>

</html>