org.jtheque.metrics.utils.elements
Class Project

java.lang.Object
  extended by org.jtheque.metrics.utils.elements.Project

public final class Project
extends Object

A project.

Author:
Baptiste Wicht

Constructor Summary
Project(String name)
          Construct a new Project.
 
Method Summary
 double getAverageLinesClass()
          Return the average lines by class.
 double getAverageLinesOfCodeClass()
          Return the average lines of code by class.
 double getAverageLinesOfCommentClass()
          Return the average lines of comment by class.
 String getName()
          Return the name of the project.
 Package getRootPackage()
          Return the root package of the project.
 void setRootPackage(Package rootPackage)
          Set the root package of the project.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Project

public Project(String name)
Construct a new Project.

Parameters:
name - The name of the project.
Method Detail

setRootPackage

public void setRootPackage(Package rootPackage)
Set the root package of the project.

Parameters:
rootPackage - The root package of the project.

getRootPackage

public Package getRootPackage()
Return the root package of the project.

Returns:
The root package.

getName

public String getName()
Return the name of the project.

Returns:
The name of the project.

getAverageLinesOfCodeClass

public double getAverageLinesOfCodeClass()
Return the average lines of code by class.

Returns:
The average lines of code by class.

getAverageLinesOfCommentClass

public double getAverageLinesOfCommentClass()
Return the average lines of comment by class.

Returns:
The average lines of comment by class.

getAverageLinesClass

public double getAverageLinesClass()
Return the average lines by class.

Returns:
The average lines by class.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 JTheque. All Rights Reserved.