Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsOCL fan-in & fan-out
https://www.eclipse.org/forums/index.php/mv/msg/1326/3596/#msg_3596
I am using the EMFT Query framework to check OCL queries against instance
models. However, I'm new to OCL and I can't seem to find any good
tutorials.
So, I have a instance model which is composed by objects that extend
either "Component" or "Connector" (more specifically, a MVC architecture
editor). What I would like to do is calculate the fan-in/fan-out of a
given component. By fan-in and fan-out I mean counting the number of
connectors pointing to a component (fan-in), and the number of connectors
leaving a component (fan-out).
I'd appreciate any kind of help or advise.
Thanks in advance,
Joana Trindade]]>Joana M. F. Trindade2007-02-06T10:51:32-00:00Re: OCL fan-in & fan-out
https://www.eclipse.org/forums/index.php/mv/msg/1326/4868/#msg_4868
-- fan-in
Connector.allInstances()->select(c : Connector | c.target.name =
self.name)->size()