adaptj.toolkits.analyses.metrics
Class ObjectOrientationMetric

java.lang.Object
  |
  +--adaptj.toolkits.Customizable
        |
        +--adaptj.toolkits.TimedCustomizable
              |
              +--adaptj.toolkits.TimedEventBoxApplicable
                    |
                    +--adaptj.toolkits.EventOperation
                          |
                          +--adaptj.toolkits.analyses.metrics.MetricAnalysis
                                |
                                +--adaptj.toolkits.analyses.metrics.ObjectOrientationMetric
All Implemented Interfaces:
ICustomizable, IEventBoxApplicable, IInitializable, ITimedCustomizable, XMLOutputable

public class ObjectOrientationMetric
extends MetricAnalysis


Nested Class Summary
(package private)  class ObjectOrientationMetric.MethodCountComparator
           
(package private)  class ObjectOrientationMetric.TypeCountComparator
           
 
Constructor Summary
ObjectOrientationMetric(java.lang.String name)
           
ObjectOrientationMetric(java.lang.String name, double threshold)
           
 
Method Summary
 void computeResults()
           
 void doApply(EventBox box)
           
 void doInit()
           
 java.lang.String getOption(java.lang.String name)
           
 EventDependency[] registerEventDependencies()
           
 java.lang.String[] registerOperationDependencies()
           
 void setOption(java.lang.String name, java.lang.String value)
           
 
Methods inherited from class adaptj.toolkits.analyses.metrics.MetricAnalysis
analysisDone, displayHelp, doDone, getLongName, outputXML
 
Methods inherited from class adaptj.toolkits.EventOperation
doPreInit
 
Methods inherited from class adaptj.toolkits.TimedEventBoxApplicable
apply, done, doVerboseDone, doVerboseInit, doVerbosePreInit, init, preInit
 
Methods inherited from class adaptj.toolkits.TimedCustomizable
getTime, isTimed, setTimed, startTimer, stopTimer
 
Methods inherited from class adaptj.toolkits.Customizable
getDescription, getName, isEnabled, isVerbose, setEnabled, setVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface adaptj.toolkits.ICustomizable
getDescription, getName, isEnabled, isVerbose, setEnabled, setVerbose
 

Constructor Detail

ObjectOrientationMetric

public ObjectOrientationMetric(java.lang.String name)

ObjectOrientationMetric

public ObjectOrientationMetric(java.lang.String name,
                               double threshold)
Method Detail

registerEventDependencies

public EventDependency[] registerEventDependencies()
Specified by:
registerEventDependencies in interface IEventBoxApplicable
Specified by:
registerEventDependencies in class TimedEventBoxApplicable

registerOperationDependencies

public java.lang.String[] registerOperationDependencies()
Specified by:
registerOperationDependencies in interface IEventBoxApplicable
Specified by:
registerOperationDependencies in class TimedEventBoxApplicable

doInit

public void doInit()
Overrides:
doInit in class EventOperation

doApply

public void doApply(EventBox box)
Specified by:
doApply in class TimedEventBoxApplicable

computeResults

public void computeResults()
Overrides:
computeResults in class MetricAnalysis

setOption

public void setOption(java.lang.String name,
                      java.lang.String value)
Specified by:
setOption in interface ICustomizable
Overrides:
setOption in class MetricAnalysis

getOption

public java.lang.String getOption(java.lang.String name)
Specified by:
getOption in interface ICustomizable
Overrides:
getOption in class MetricAnalysis