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
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).