[gme-users] BON2 and subtypes of instances

Adam Nagel nagelar at isis.vanderbilt.edu
Fri Aug 8 16:30:50 CDT 2008

We are encountering problems using BON2 with subtypes and instances.


Take models A and B.  Instantiate model A into model B, creating A(inst).
Then create a subtype of model B and call it B(sub).  Model B(sub) now
contains A(inst)(inst), which seems to be considered an instance of A(inst)
by GME.


Our interpreter finds A(inst)(inst) within B(sub).  We first call
getTypeInhObject() to acquire the TypeInhObject for A(inst)(inst).  Then we
call isInstance() on it, which returns true.  However, when we call
getType(), we get a null object.


This seems like a strange case, so I wanted to see if we're missing some
detail that prevents us from finding the type of A(inst)(inst).  The end
goal is to trace all of the way back to A from A(inst)(inst).


I would be glad to clarify the case if this description is especially
confusing. :-)


Adam Nagel

Staff Engineer

ISIS / Vanderbilt University


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20080808/1c4b5eec/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3098 bytes
Desc: not available
Url : http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20080808/1c4b5eec/attachment.bin 

More information about the gme-users mailing list