[gme-users] Connection Ends and Reference Ports (BONInterpreter)

Jacques Kerner jacques.kerner at oktal.fr
Fri Jun 4 19:58:07 CDT 2004


Hi,

I have a question concerning Connections between reference ports, I hope 
somebody can tell me more about it.

I noticed that the BONInterpreter code generator creates getDst() and 
getSrc() methods for all Connections it find in the meta model, but the 
returned type vary. It usually matches the types at the connection ends, 
but it can also be simply BON::ConnectionEnd which is somewhat 
disturbing, since I was not able to get the concrete FCO that is 
targeted by the Connection End. I also noticed (maybe I am wrong) that 
it happens whenever the BONInterpreter code generator dtects there might 
be a risk that the connection in fact connects reference ports together 
(there is a function isReferencePort in ConnectionEnd, that lead me to 
think that it is a special case). Hence my question :

When a getDst() or getSrc() returns type BON::ConnectionEnd, how do I 
get back to the real concrete FCO targeted ? Is it normal that the 
getDst and getSrc function return BON::ConnectionEnd at all instead of 
the real type, like for other Connections...

Hope someone understands my question. Thank you.

Jacques Kerner.


More information about the gme-users mailing list