[gme-users] Determining type
Zoltan Molnar
zoltan.molnar at vanderbilt.edu
Thu Oct 26 12:25:05 CDT 2006
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
>
More information about the gme-users
mailing list