com.jeantessier.dependency
Class MetricsGatherer

java.lang.Object
  |
  +--com.jeantessier.dependency.VisitorBase
        |
        +--com.jeantessier.dependency.MetricsGatherer
All Implemented Interfaces:
Visitor

public class MetricsGatherer
extends VisitorBase


Field Summary
static int CHART_INDEX
           
static int CLASSES_PER_PACKAGE
           
static int FEATURES_PER_CLASS
           
static int INBOUNDS_PER_CLASS
           
static int INBOUNDS_PER_FEATURE
           
static int INBOUNDS_PER_PACKAGE
           
static int NB_CHARTS
           
static int OUTBOUNDS_PER_CLASS
           
static int OUTBOUNDS_PER_FEATURE
           
static int OUTBOUNDS_PER_PACKAGE
           
 
Constructor Summary
MetricsGatherer()
           
MetricsGatherer(TraversalStrategy strategy)
           
 
Method Summary
 long[] getChartData(int i)
           
 int getChartMaximum()
           
static java.lang.String getChartName(int i)
           
 java.util.Collection getClasses()
           
 java.util.Collection getFeatures()
           
static int getNbCharts()
           
 long getNbInbound()
           
 long getNbInboundClasses()
           
 long getNbInboundFeatures()
           
 long getNbInboundPackages()
           
 long getNbOutbound()
           
 long getNbOutboundClasses()
           
 long getNbOutboundFeatures()
           
 long getNbOutboundPackages()
           
 java.util.Collection getPackages()
           
 void preprocessClassNode(ClassNode node)
           
 void preprocessFeatureNode(FeatureNode node)
           
 void preprocessPackageNode(PackageNode node)
           
 void visitInboundClassNode(ClassNode node)
          ClassNode --> CurrentNode()
 void visitInboundFeatureNode(FeatureNode node)
          FeatureNode --> CurrentNode()
 void visitInboundPackageNode(PackageNode node)
          PackageNode --> CurrentNode()
 void visitOutboundClassNode(ClassNode node)
          CurrentNode() --> ClassNode
 void visitOutboundFeatureNode(FeatureNode node)
          CurrentNode() --> FeatureNode
 void visitOutboundPackageNode(PackageNode node)
          CurrentNode() --> PackageNode
 
Methods inherited from class com.jeantessier.dependency.VisitorBase
getCurrentNode, getStrategy, popNode, postprocessBeforeDependenciesClassNode, postprocessBeforeDependenciesPackageNode, postprocessClassNode, postprocessFeatureNode, postprocessPackageNode, preprocessAfterDependenciesClassNode, preprocessAfterDependenciesPackageNode, pushNode, traverseInbound, traverseNodes, traverseOutbound, visitClassNode, visitFeatureNode, visitPackageNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHART_INDEX

public static final int CHART_INDEX

CLASSES_PER_PACKAGE

public static final int CLASSES_PER_PACKAGE

FEATURES_PER_CLASS

public static final int FEATURES_PER_CLASS

INBOUNDS_PER_PACKAGE

public static final int INBOUNDS_PER_PACKAGE

OUTBOUNDS_PER_PACKAGE

public static final int OUTBOUNDS_PER_PACKAGE

INBOUNDS_PER_CLASS

public static final int INBOUNDS_PER_CLASS

OUTBOUNDS_PER_CLASS

public static final int OUTBOUNDS_PER_CLASS

INBOUNDS_PER_FEATURE

public static final int INBOUNDS_PER_FEATURE

OUTBOUNDS_PER_FEATURE

public static final int OUTBOUNDS_PER_FEATURE

NB_CHARTS

public static final int NB_CHARTS
Constructor Detail

MetricsGatherer

public MetricsGatherer()

MetricsGatherer

public MetricsGatherer(TraversalStrategy strategy)
Method Detail

getNbCharts

public static int getNbCharts()

getChartName

public static java.lang.String getChartName(int i)

getChartData

public long[] getChartData(int i)

getChartMaximum

public int getChartMaximum()

getPackages

public java.util.Collection getPackages()

getClasses

public java.util.Collection getClasses()

getFeatures

public java.util.Collection getFeatures()

getNbOutbound

public long getNbOutbound()

getNbInbound

public long getNbInbound()

getNbOutboundPackages

public long getNbOutboundPackages()

getNbInboundPackages

public long getNbInboundPackages()

getNbOutboundClasses

public long getNbOutboundClasses()

getNbInboundClasses

public long getNbInboundClasses()

getNbOutboundFeatures

public long getNbOutboundFeatures()

getNbInboundFeatures

public long getNbInboundFeatures()

preprocessPackageNode

public void preprocessPackageNode(PackageNode node)
Overrides:
preprocessPackageNode in class VisitorBase

visitInboundPackageNode

public void visitInboundPackageNode(PackageNode node)
PackageNode --> CurrentNode()
Overrides:
visitInboundPackageNode in class VisitorBase

visitOutboundPackageNode

public void visitOutboundPackageNode(PackageNode node)
CurrentNode() --> PackageNode
Overrides:
visitOutboundPackageNode in class VisitorBase

preprocessClassNode

public void preprocessClassNode(ClassNode node)
Overrides:
preprocessClassNode in class VisitorBase

visitInboundClassNode

public void visitInboundClassNode(ClassNode node)
ClassNode --> CurrentNode()
Overrides:
visitInboundClassNode in class VisitorBase

visitOutboundClassNode

public void visitOutboundClassNode(ClassNode node)
CurrentNode() --> ClassNode
Overrides:
visitOutboundClassNode in class VisitorBase

preprocessFeatureNode

public void preprocessFeatureNode(FeatureNode node)
Overrides:
preprocessFeatureNode in class VisitorBase

visitInboundFeatureNode

public void visitInboundFeatureNode(FeatureNode node)
FeatureNode --> CurrentNode()
Overrides:
visitInboundFeatureNode in class VisitorBase

visitOutboundFeatureNode

public void visitOutboundFeatureNode(FeatureNode node)
CurrentNode() --> FeatureNode
Overrides:
visitOutboundFeatureNode in class VisitorBase


Dependency Finder 1.1.0 © 2001-2004 Jean Tessier.