[gme-users] instance's type

Peter Volgyesi peter.volgyesi at vanderbilt.edu
Wed Aug 26 14:16:16 CDT 2009


Great, thanks for the update.
--
peter



On Tue, Aug 25, 2009 at 3:34 PM, Vijdan KIZILAY<vkizilay at gmail.com> wrote:
> Hi again,
>
> oo->getType()->getFCO()->getName()  gives what I want.
>
> thanks a lot.
> Vijdan
>
>
>
> On Tue, Aug 25, 2009 at 11:29 PM, Vijdan KIZILAY <vkizilay at gmail.com> wrote:
>>
>> Yes I try it  but it gives the instance's name that is
>> RegisteredShipObject but I want the type of instance which is Ship.
>>
>> RegisteredShipObject is the instance of Ship.  I want to get the "Ship"
>> (type name). Is it possible?
>>
>> best regards,
>> Vijdan
>>
>>
>> On Tue, Aug 25, 2009 at 9:04 PM, Peter Volgyesi
>> <peter.volgyesi at vanderbilt.edu> wrote:
>>>
>>> Try this:
>>>
>>> oo->getFCO()->getName()
>>>
>>> --
>>> peter
>>>
>>>
>>>
>>> On Tue, Aug 25, 2009 at 10:13 AM, Peter
>>> Volgyesi<peter.volgyesi at gmail.com> wrote:
>>> > Hi,
>>> >
>>> > Do you need the meta "type" (kind) of the object or the archetype (if
>>> > you are using the type/instance feature of GME) ?
>>> > The first can be accessed by getFCOMeta (or more specialized methods
>>> > for atoms, models, etc. by calling getXYMeta()).
>>> > The second can be acquired by calling getType().
>>> > Please, check the GME User Manual if you are not familiar with the
>>> > "type/instance" feature.
>>> > Regards,
>>> >
>>> > --
>>> > peter
>>> >
>>> >
>>> >
>>> > On Tue, Aug 25, 2009 at 5:02 AM, Vijdan KIZILAY<vkizilay at gmail.com>
>>> > wrote:
>>> >> Hello,
>>> >>
>>> >> How can I take a type of a instance with BON2?
>>> >>
>>> >> I can take name, role, kind but I could not take the type of
>>> >> instance..
>>> >> How can be the instance's type taken?
>>> >>
>>> >> I can get BON::Type but I can not get the name of type.
>>> >>
>>> >> Vijdan
>>> >>
>>> >> _______________________________________________
>>> >> gme-users mailing list
>>> >> gme-users at list.isis.vanderbilt.edu
>>> >> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>>> >>
>>> >>
>>> >
>>> _______________________________________________
>>> gme-users mailing list
>>> gme-users at list.isis.vanderbilt.edu
>>> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>>
>
>
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>
>


More information about the gme-users mailing list