org.acm.seguin.metrics
Class PackageMetrics

java.lang.Object
  extended by org.acm.seguin.metrics.PackageMetrics

public class PackageMetrics
extends java.lang.Object

Stores the metrics for a particular package

Author:
Chris Seguin

Constructor Summary
PackageMetrics(java.lang.String initPackage)
          Constructor for the PackageMetrics object
 
Method Summary
 int getAbstractClassCount()
          Return the abstract class count
 double getAbstractClassPercentage()
          Return the abstract class count
 double getBlockDepthAverage()
          Return the block depth average
 double getClassMethodAverage()
          Return the class method count
 int getClassMethodTotal()
          Return the class method count
 int getClassTotal()
          Return the class count
 double getClassVariableAverage()
          Return the class variable count
 int getClassVariableTotal()
          Return the class variable count
 double getInstanceVariableAverage()
          Return the instance variable count
 int getInstanceVariableTotal()
          Return the instance variable count
 int getInterfaceCount()
          Return the abstract class count
 double getInterfacePercentage()
          Return the abstract class count
 double getLinesOfCodeAverage()
          Return the lines of code average
 double getOtherMethodAverage()
          Return the other method count
 int getOtherMethodTotal()
          Return the other method count
 java.lang.String getPackageName()
          Get the package name
 double getParameterAverage()
          Return the parameter average
 int getParameterTotal()
          Return the parameter total
 double getPublicMethodAverage()
          Return the public method count
 int getPublicMethodTotal()
          Return the public method count
 double getStatementAverage()
          Return the statement average
 int getStatementTotal()
          Return the statement total
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageMetrics

public PackageMetrics(java.lang.String initPackage)
Constructor for the PackageMetrics object

Parameters:
initPackage - Description of Parameter
Method Detail

getPackageName

public java.lang.String getPackageName()
Get the package name

Returns:
the package name

getPublicMethodTotal

public int getPublicMethodTotal()
Return the public method count

Returns:
The public method count

getOtherMethodTotal

public int getOtherMethodTotal()
Return the other method count

Returns:
The other method count

getClassMethodTotal

public int getClassMethodTotal()
Return the class method count

Returns:
The class method count

getInstanceVariableTotal

public int getInstanceVariableTotal()
Return the instance variable count

Returns:
The instance variable count

getClassVariableTotal

public int getClassVariableTotal()
Return the class variable count

Returns:
The class variable count

getClassTotal

public int getClassTotal()
Return the class count

Returns:
The class count

getAbstractClassCount

public int getAbstractClassCount()
Return the abstract class count

Returns:
The abstract class count

getInterfaceCount

public int getInterfaceCount()
Return the abstract class count

Returns:
The abstract class count

getStatementTotal

public int getStatementTotal()
Return the statement total

Returns:
The statement total

getParameterTotal

public int getParameterTotal()
Return the parameter total

Returns:
The parameter total

getStatementAverage

public double getStatementAverage()
Return the statement average

Returns:
The statement average

getParameterAverage

public double getParameterAverage()
Return the parameter average

Returns:
The parameter average

getBlockDepthAverage

public double getBlockDepthAverage()
Return the block depth average

Returns:
The block depth average

getLinesOfCodeAverage

public double getLinesOfCodeAverage()
Return the lines of code average

Returns:
The lines of code average

getPublicMethodAverage

public double getPublicMethodAverage()
Return the public method count

Returns:
The public method count

getOtherMethodAverage

public double getOtherMethodAverage()
Return the other method count

Returns:
The other method count

getClassMethodAverage

public double getClassMethodAverage()
Return the class method count

Returns:
The class method count

getInstanceVariableAverage

public double getInstanceVariableAverage()
Return the instance variable count

Returns:
The instance variable count

getClassVariableAverage

public double getClassVariableAverage()
Return the class variable count

Returns:
The class variable count

getAbstractClassPercentage

public double getAbstractClassPercentage()
Return the abstract class count

Returns:
The abstract class count

getInterfacePercentage

public double getInterfacePercentage()
Return the abstract class count

Returns:
The abstract class count