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[] ChartData(int i)
           
 int ChartMaximum()
           
static java.lang.String ChartName(int i)
           
 java.util.Collection Classes()
           
 java.util.Collection Features()
           
static int NbCharts()
           
 long NbInbound()
           
 long NbInboundClasses()
           
 long NbInboundFeatures()
           
 long NbInboundPackages()
           
 long NbOutbound()
           
 long NbOutboundClasses()
           
 long NbOutboundFeatures()
           
 long NbOutboundPackages()
           
 java.util.Collection Packages()
           
 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
CurrentNode, PopNode, PostprocessBeforeDependenciesClassNode, PostprocessBeforeDependenciesPackageNode, PostprocessClassNode, PostprocessFeatureNode, PostprocessPackageNode, PreprocessAfterDependenciesClassNode, PreprocessAfterDependenciesPackageNode, PushNode, Strategy, 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

NbCharts

public static int NbCharts()

ChartName

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

ChartData

public long[] ChartData(int i)

ChartMaximum

public int ChartMaximum()

Packages

public java.util.Collection Packages()

Classes

public java.util.Collection Classes()

Features

public java.util.Collection Features()

NbOutbound

public long NbOutbound()

NbInbound

public long NbInbound()

NbOutboundPackages

public long NbOutboundPackages()

NbInboundPackages

public long NbInboundPackages()

NbOutboundClasses

public long NbOutboundClasses()

NbInboundClasses

public long NbInboundClasses()

NbOutboundFeatures

public long NbOutboundFeatures()

NbInboundFeatures

public long NbInboundFeatures()

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