I am working in make tool for extract metrics from UML Could you please help me with ideas of how to start on extract information from XMI(XML metadata interchange) # Which is the suitable UML tool ( Rational Rose , Poseidon, magic draw ,.........)? # How can I convert UML diagrams to XMI 0.2 ? # By which parser can I retrieve values from XMI ? # Which is the first step and the clear points to make the object oriented metrics tool? please I want the simplest method and thank you very much for your time and e
Joined: Jan 29, 2003
Hi, welcome to the Ranch!
Google is your friend. A quick search for "export xmi" got me Visual Paradigm. I'd bet most UML tools do it, too.
XMI is just XML, though I have to admit I've never looked at it. We purchased a toolkit that uses XSD to simplify XMI before we see it. Still, you should be able to parse it with any XML parser. If you're new to XML look for the XML forum here on the ranch.
Robert Martin has defined a set of metrics dealing with dependency and abstractness. See the JDepend tool which analyzes all the metrics on compiled code. You can probably find most of the same information in the XMI.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Joined: Dec 12, 2003
I'd recommend doing some research first, as Stan suggests. There are already tools which derive metrics from models, this category of tool has been around a couple of decades, and it's never taken off.
Furthermore, there is significant doubt that there is much value in these sorts of metrics, other than to keep the bureaucrats among us entertained.