ch.elca.dependency.core
Class Statistic

java.lang.Object
  |
  +--ch.elca.dependency.core.Statistic
All Implemented Interfaces:
java.lang.Cloneable

public class Statistic
extends java.lang.Object
implements java.lang.Cloneable

Represents all the statistic data which comes fron the initial analyse.
This class acts just as struct with its access methods.

Version:
1.0-beta
Author:
Christoph Trutmann

Constructor Summary
Statistic()
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.
 int getAnalyzedClasses()
          Gets the number of clsses.
 int getAnalyzedLibPackages()
          Gets the number of library packages which passed the load filter.
 int getAnalyzedPackages()
          Gets the number of packages.
 double getAverageAnalyzedClassesPerPackage()
          Gets the average classes per package which passed the load filter.
 double getAverageProjClassesPerPackage()
          Gets the average classes per package in the whole project.
 java.lang.String getBiggestAnalyzedPackage()
          Gets the biggest package which passed the load filter.
 java.lang.String getBiggestProjPackage()
          Gets the biggest package in the project;
 int getNumberOfUsesDep()
          Gets the number of "uses" dependencies.
 int getProjClasses()
          Gets the number of classes in the project.
 int getProjLibPackages()
          Gets the number of library packages in the project.
 int getProjPackages()
          Gets the number of packages in the project.
 void setAnalyzedClasses(int classes)
          Sets number of classes.
 void setAnalyzedPackages(int packages)
          Sets the number of packages.
 void setAnalyzedVertices(int vertices)
          Sets the number of vertices which passed the load filter.
 void setBiggestAnalyzedPackage(java.lang.String bigPackage)
          Sets the biggest package which passed the load filter.
 void setBiggestProjPackage(java.lang.String bigPackage)
          Sets the biggest package in the analyzed project.
 void setNumberOfUsesDep(int dep)
          Sets the number of "uses" dependencies in the view.
 void setProjClasses(int classTotal)
          Sets the number of classes in the project.
 void setProjPackages(int packageTotal)
          Sets the number of packages in the project.
 void setProjVertices(int vertices)
          Sets the number of vertices in the project.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Statistic

public Statistic()
Constructor.

Method Detail

setProjClasses

public void setProjClasses(int classTotal)
Sets the number of classes in the project.

Parameters:
classTotal - Number of classes in the project.

getProjClasses

public int getProjClasses()
Gets the number of classes in the project.

Returns:
Number of classes in the project.

setProjPackages

public void setProjPackages(int packageTotal)
Sets the number of packages in the project.

Parameters:
packageTotal - Number of packages in the project.

getProjPackages

public int getProjPackages()
Gets the number of packages in the project.

Returns:
Number of packages in the project.

setProjVertices

public void setProjVertices(int vertices)
Sets the number of vertices in the project.

Parameters:
vertices - Number of the vertices in the project.

getProjLibPackages

public int getProjLibPackages()
Gets the number of library packages in the project.

Returns:
Number of the library packages in the project.

setAnalyzedClasses

public void setAnalyzedClasses(int classes)
Sets number of classes.

Parameters:
classes - Number of classes in the analyzed project.

getAnalyzedClasses

public int getAnalyzedClasses()
Gets the number of clsses.

Returns:
Number of classes in the analyzed project.

setAnalyzedPackages

public void setAnalyzedPackages(int packages)
Sets the number of packages.

Parameters:
packages - Number of packages in the analyzed project.

getAnalyzedPackages

public int getAnalyzedPackages()
Gets the number of packages.

Returns:
Number of packages in the analyzed project.

setAnalyzedVertices

public void setAnalyzedVertices(int vertices)
Sets the number of vertices which passed the load filter.

Parameters:
vertices - Number of the vertices which passed the load filter.

getAnalyzedLibPackages

public int getAnalyzedLibPackages()
Gets the number of library packages which passed the load filter.

Returns:
Number of the library packages which passed the load filter.

setNumberOfUsesDep

public void setNumberOfUsesDep(int dep)
Sets the number of "uses" dependencies in the view.

Parameters:
dep - Number of dependencies in the analyzed project.

getNumberOfUsesDep

public int getNumberOfUsesDep()
Gets the number of "uses" dependencies.

Returns:
Number of dependencies in the analyzed project.

setBiggestProjPackage

public void setBiggestProjPackage(java.lang.String bigPackage)
Sets the biggest package in the analyzed project.

Parameters:
bigPackage - Biggest package in the analyzed project.

getBiggestProjPackage

public java.lang.String getBiggestProjPackage()
Gets the biggest package in the project;

Returns:
Biggest package in the project.

setBiggestAnalyzedPackage

public void setBiggestAnalyzedPackage(java.lang.String bigPackage)
Sets the biggest package which passed the load filter.

Parameters:
bigPackage - Biggest package which passed the load filter.

getBiggestAnalyzedPackage

public java.lang.String getBiggestAnalyzedPackage()
Gets the biggest package which passed the load filter.

Returns:
Biggest package which passed the load filter.

getAverageProjClassesPerPackage

public double getAverageProjClassesPerPackage()
Gets the average classes per package in the whole project.

Returns:
Average number of classes per package in the project.

getAverageAnalyzedClassesPerPackage

public double getAverageAnalyzedClassesPerPackage()
Gets the average classes per package which passed the load filter.

Returns:
Average number of classes per package which passed the load filter.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Creates and returns a copy of this object.

Overrides:
clone in class java.lang.Object
Returns:
A clone of this instance.
Throws:
java.lang.CloneNotSupportedException - If the object's class does not support the Cloneable interface. Subclasses that override the clone method can also throw this exception to indicate that an instance cannot be cloned.


Copyright © 2003 ELCA Informatique SA. All Rights Reserved.