[gme-users] Determining type

mehmet fatih fatihceng at hotmail.com
Thu Oct 26 20:40:05 CDT 2006


Thanks for your response Zoltan,
I have one more question :), how can i get type string (that we defined in 
metamodel) of corresponding FCO? I.e is there any method like getKindName()? 
(btw a similiar method is used in tutorials but I guess it is not used 
anymore).


>ConnectionEnd myEnd = getInConnEnds(...);
>FCO myFCO( myEnd);
>if( myFCO) ... // connectionEnd is an FCO object
>else ... // connectionEnd is a ReferencePort
>{
>    ReferencePort rp( myEnd);
>    rp->get... //
>}
>By using the code above you can determine the type.
>ReferencePorts are objects which are involved in connections when the 
>connectionend is drawn to a port of a reference, instead of to a fco, or a 
>port of a model.
>
>Zoli
>
>mehmet fatih wrote:
>>Hi,
>>I have a question related with BON2 Interpreter. I am trying to determine 
>>the type of atom that I defined in my metamodel. It works well with 
>>Project class through using "findByKind(string)", but what I trying to do 
>>is to determine this through ConnectionEnd class. How can I determine the 
>>type of an item in BON2?
>>
>>PS: The point that I have trouble is after having found connection ends 
>>through get[Out|In]ConnEnds methods, I could not figure out the type of 
>>ConnectionEnd.
>>
>>Thanks in advance,
>>Mehmet Fatih Uluat
>>
>>_________________________________________________________________
>>Hava durumunu bizden ögrenin ve evden öyle çikin! 
>>http://www.msn.com.tr/havadurumu/
>>
>>_______________________________________________
>>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

_________________________________________________________________
Add a Yahoo! contact to Windows Live Messenger for a chance to win a free 
trip! 
http://www.imagine-windowslive.com/minisites/yahoo/default.aspx?locale=en-us&hmtagline



More information about the gme-users mailing list