Class ProjectInfo

java.lang.Object
  extended by Info
      extended by ProjectInfo

public class ProjectInfo
extends Info


Field Summary
private  InfoLinkedList fileInfoList
           
 
Fields inherited from class Info
f
 
Constructor Summary
ProjectInfo(java.io.File f, InfoLinkedList fileInfoList)
           
 
Method Summary
 int getNumClasses()
          return the number of classes in this project.
 void printStatistics()
          prints the statistics for this project.
 
Methods inherited from class Info
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileInfoList

private InfoLinkedList fileInfoList
Constructor Detail

ProjectInfo

public ProjectInfo(java.io.File f,
                   InfoLinkedList fileInfoList)
Method Detail

getNumClasses

public int getNumClasses()
return the number of classes in this project. this is the size of the fileInfoList member.

Returns:

printStatistics

public void printStatistics()
prints the statistics for this project. example output:
Project: /Users/srollins/teaching/cs112/code/Exam
Average Lines Per Class: 27
Minimum Lines: 8 Class: /Users/srollins/teaching/cs112/code/Exam/src/Fraction.java
Maximum Lines: 64 Class: /Users/srollins/teaching/cs112/code/Exam/src/Exam1.java
Class: /Users/srollins/teaching/cs112/code/Exam/src/Exam1.java Total Lines: 64 Lines Excluding Comments: 48
Class: /Users/srollins/teaching/cs112/code/Exam/src/Fraction.java Total Lines: 8 Lines Excluding Comments: 7
Class: /Users/srollins/teaching/cs112/code/Exam/src/Name.java Total Lines: 11 Lines Excluding Comments: 11

Specified by:
printStatistics in class Info