org.acm.seguin.metrics
Class TypeMetrics

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

public class TypeMetrics
extends java.lang.Object

Stores the metrics for a particular type

Author:
Chris Seguin

Constructor Summary
TypeMetrics(java.lang.String initPackage, java.lang.String initType)
          Constructor for the TypeMetrics object
 
Method Summary
 double getBlockDepthAverage()
          Return the average block depth
 int getBlockDepthTotal()
          Return the block depth for use in computing system wide averages
 int getClassMethodCount()
          Return the class method count
 int getClassVariableCount()
          Return the class variable count
 int getInstanceVariableCount()
          Return the instance variable count
 double getLinesOfCodeAverage()
          Return the average lines of code
 int getLinesOfCodeTotal()
          Return the lines of code for use in computing system wide averages
 int getOtherMethodCount()
          Return the other method count
 java.lang.String getPackageName()
          Return the package name
 double getParameterAverage()
          Return the parameter average
 int getParameterTotal()
          Return the parameter total
 int getPublicMethodCount()
          Return the public method count
 double getStatementAverage()
          Return the statement average
 int getStatementTotal()
          Return the statement total
 java.lang.String getTypeName()
          Return the type name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeMetrics

public TypeMetrics(java.lang.String initPackage,
                   java.lang.String initType)
Constructor for the TypeMetrics object

Parameters:
initPackage - The package
initType - The type
Method Detail

getPackageName

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

Returns:
the package name

getTypeName

public java.lang.String getTypeName()
Return the type name

Returns:
The type name

getPublicMethodCount

public int getPublicMethodCount()
Return the public method count

Returns:
The public method count

getOtherMethodCount

public int getOtherMethodCount()
Return the other method count

Returns:
The other method count

getClassMethodCount

public int getClassMethodCount()
Return the class method count

Returns:
The class method count

getInstanceVariableCount

public int getInstanceVariableCount()
Return the instance variable count

Returns:
The instance variable count

getClassVariableCount

public int getClassVariableCount()
Return the class variable count

Returns:
The class variable 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

getBlockDepthTotal

public int getBlockDepthTotal()
Return the block depth for use in computing system wide averages

Returns:
The block depth total

getLinesOfCodeTotal

public int getLinesOfCodeTotal()
Return the lines of code for use in computing system wide averages

Returns:
The block depth 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 average block depth

Returns:
The parameter average

getLinesOfCodeAverage

public double getLinesOfCodeAverage()
Return the average lines of code

Returns:
The parameter average