Book a Demo

Author Topic: CCD metrics from EA in C#  (Read 3829 times)

defi

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
CCD metrics from EA in C#
« on: July 03, 2012, 10:51:40 pm »
Hi! I have a logistic problem, I have a diagram in EA and i have to calculate the CCD (cumulative component dependency) metrics for every element in the diagram. My idea is to have the list of the clients and for each client i have a list of supplier. If the supplier doesn't appear in the client list it means that is a leaf, so CCD is 1, and the i go up on the client and add the CCD to the client and so on.

But i have to admit that my idea has has some bugs, because when i think how to put it into code i don't know how.

So my inputs are two lists (client and supplier) , and a diagram with elements and connectors to refer to.

Has anyone some idea? Please someone help me, because except the theoretical part i can't find anything useful on the web.

Thank you.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13495
  • Karma: +572/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: CCD metrics from EA in C#
« Reply #1 on: July 04, 2012, 03:13:05 pm »
I don't get the role of the diagram here.
Do you want to limit your calculation to only elements shown on the diagram? Or even only the connectors shown on a diagram?

Why? What importance does the diagram have? I could understand doing a calculation like that for a package, or a whole model, but for a diagram?

Anyway, second thing to look for is how to determine is which type of connectors you are going to use. Only associations, or also dependencies, generalizations, messages,...
And what are you going to do with exotic things like n-ary associations and association classes?
Then one you have established that you will have to determine, for each type of connectors how to determine the "functional" client and the "functional" supplier.
For associations, to give you an example, the client/supplier fields are based on the direction the association is drawn, which doesn't really bear any meaning.

Then when you've defined all of that you might want to think further for   other types of dependencies. Think type of attributes and parameters, reference in tagged values,...


So it looks you've still got some work to do :-X

Geert

defi

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: CCD metrics from EA in C#
« Reply #2 on: July 04, 2012, 06:13:48 pm »
Hi! Sorry, it wasn't the diagram but the model. So the idea is to calculate the CCD of the elements in the whole Model.
And for the other things you mentioned, I haven't thought about that, but i think that the connectors type that i want to condider are: ass, agg,generalization,realization,compose and dependency like in another part of the project where i have to build another diagram that contains only element.type class and the connectors.type that i said before.