net.sf.statcvs.reports

Class AbstractLocTableReport

Known Direct Subclasses:
AuthorsForDirectoryTableReport, DevelopersTableReport, DirectoriesForAuthorTableReport, TopDevelopersTableReport

public abstract class AbstractLocTableReport
extends Object

Convenience superclass for table reports related to authors and directories. Contains methods to calculate some common stuff for these tables.
Version:
$Id: AbstractLocTableReport.java,v 1.12 2008/04/02 11:22:15 benoitx Exp $
Author:
Lukasz Pekacki

Field Summary

static int
SORT_BY_LINES
Sort the authors table by lines of code
static int
SORT_BY_NAME
Sort the authors table by name

Constructor Summary

AbstractLocTableReport(ReportConfig config)
Constructor

Method Summary

protected void
calculateChangesAndLinesPerDeveloper(Collection revs)
protected void
calculateChangesAndLinesPerDirectory(Collection revisions)
protected Table
createChangesAndLinesTable(GenericColumn keys, GenericColumn keys2, String summary)
protected IntegerMap
getChangesMap()
protected Repository
getContent()
int
getDeveloperCount()
protected IntegerMap
getLinesMap()

Field Details

SORT_BY_LINES

public static final int SORT_BY_LINES
Sort the authors table by lines of code
Field Value:
1

SORT_BY_NAME

public static final int SORT_BY_NAME
Sort the authors table by name
Field Value:
0

Constructor Details

AbstractLocTableReport

public AbstractLocTableReport(ReportConfig config)
Constructor
Parameters:

Method Details

calculateChangesAndLinesPerDeveloper

protected void calculateChangesAndLinesPerDeveloper(Collection revs)

calculateChangesAndLinesPerDirectory

protected void calculateChangesAndLinesPerDirectory(Collection revisions)

createChangesAndLinesTable

protected Table createChangesAndLinesTable(GenericColumn keys,
                                           GenericColumn keys2,
                                           String summary)

getChangesMap

protected IntegerMap getChangesMap()

getContent

protected Repository getContent()

getDeveloperCount

public int getDeveloperCount()

getLinesMap

protected IntegerMap getLinesMap()