locked
What programs can measure, analyse and restructure a program code or UML scheme? RRS feed

  • Question

  • Could anybody tell me which tool can measure program code metrics or graphics scheme (for example UML scheme), analyse and restructure them?
    I'm going to compare those programs.

    PS: Sorry for my english if it is a bit unintelligible.
    Saturday, November 3, 2007 10:31 PM

Answers

  • FxCop has the ability to provider you with some of the source code metrics.

     

    I have to be honest that I don't know anythign about the measures that might be found against UML diagrams.  Perhaps you could look at IBM, I think they might have some of that sort of thing, but I'm not 100%.

     

    Hope this helps you,

     

    Martin Platt.

    Wednesday, February 6, 2008 4:00 AM

All replies

  •  

    What metrics?  No, sorry, I dont fully understand what you're asking.

     

    Are you asking for a program to refactor code?  Or something to see if the code follows certain standards?

     

    If the question relates to one of those two items, then you might want to look at Resharper (for C#), and for the standards, if that is what you are asking about, FxCop.

     

    If it is neither of the above, please try to rephrase your question, and I'll have another go.

     

    Thanks,

     

    Martin Platt.

    Monday, November 12, 2007 1:05 AM
  •  

    Thanks for the response!

     

    I don't know every measure that can be used to analyze program code and UML scheme. For example, the following metrics are used against source code:

    • Source Lines of Code (SLOC)
    • Noncommented Source Lines of Code
    • Comment Lines
    • Number of Methods
    • Decision Density
    • Cyclomatic Complexity
    • Maximum loop nesting
    • Maximum conditional nesting
    • Halstead measures (volume, difficulty and effort)
    • Software Engineering Institute (SEI) Maintainability Index
    • Class, Package and File counts

    I'm sure that there are tools to calculate metrics of an UML scheme. Here are some of those metrics:

    • CBC - Coupling between classes
    • DIT - Depth of inheritance tree
    • NACM - Number of actors in a model
    • NACU - Number of actors associated with a use case
    • NAGM - Number of the aggregations in a model
    • NASC - Number of the associations linked to a class
    • NASM - Number of the associations in a model
    • NATC1 - Number of the attributes in a class - unweighted
    • NATC2 - Number of the attributes in a class - weighted
    • NCM - Number of the classes in a model
    • NDM - Number of the directly dispatched messages of a message
    • NDM* - Number of the elements in the transitive closure of the directly dispatched messages of a message
    • NIM - Number of the inheritance relations in a model
    • NMM - Number of the messages in a model
    • NMRC - Number of messages received by the instantiated objects of a class

    Do you know any of such tools? (the more the better)

    Friday, February 1, 2008 10:18 PM
  • FxCop has the ability to provider you with some of the source code metrics.

     

    I have to be honest that I don't know anythign about the measures that might be found against UML diagrams.  Perhaps you could look at IBM, I think they might have some of that sort of thing, but I'm not 100%.

     

    Hope this helps you,

     

    Martin Platt.

    Wednesday, February 6, 2008 4:00 AM