adaptj.toolkits.analyses.metrics
Class PolymorphismMetric

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

public class PolymorphismMetric
extends MetricAnalysis


Nested Class Summary
(package private)  class PolymorphismMetric.CallSiteInfo
           
 
Field Summary
(package private)  long[] appReceiverTypeBin
           
(package private)  long[] appReceiverTypeCallsBin
           
(package private)  long[] appTargetBin
           
(package private)  long[] appTargetCallsBin
           
(package private)  long[] receiverTypeBin
           
(package private)  long[] receiverTypeCallsBin
           
(package private)  long[] targetBin
           
(package private)  long[] targetCallsBin
           
 
Constructor Summary
PolymorphismMetric(java.lang.String name)
           
 
Method Summary
 void computeResults()
           
 void displayHelp(HelpDisplayManager manager)
           
 void doApply(EventBox box)
           
 void doInit()
           
 boolean getIncludeAppMethods()
           
 java.lang.String getOption(java.lang.String name)
           
 void outputXML(XMLMetricPrinter xmlPrinter)
           
 EventDependency[] registerEventDependencies()
           
 java.lang.String[] registerOperationDependencies()
           
 void setIncludeAppMethods(boolean includeAppMethods)
           
 void setOption(java.lang.String name, java.lang.String value)
           
 
Methods inherited from class adaptj.toolkits.analyses.metrics.MetricAnalysis
analysisDone, doDone, getLongName
 
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
 

Field Detail

receiverTypeBin

long[] receiverTypeBin

appReceiverTypeBin

long[] appReceiverTypeBin

receiverTypeCallsBin

long[] receiverTypeCallsBin

appReceiverTypeCallsBin

long[] appReceiverTypeCallsBin

targetBin

long[] targetBin

appTargetBin

long[] appTargetBin

targetCallsBin

long[] targetCallsBin

appTargetCallsBin

long[] appTargetCallsBin
Constructor Detail

PolymorphismMetric

public PolymorphismMetric(java.lang.String name)
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

outputXML

public void outputXML(XMLMetricPrinter xmlPrinter)
Specified by:
outputXML in interface XMLOutputable
Overrides:
outputXML in class MetricAnalysis

getIncludeAppMethods

public boolean getIncludeAppMethods()

setIncludeAppMethods

public void setIncludeAppMethods(boolean includeAppMethods)

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

displayHelp

public void displayHelp(HelpDisplayManager manager)
Specified by:
displayHelp in interface ICustomizable
Overrides:
displayHelp in class MetricAnalysis