1 package net.sf.statcvs.reports;
2
3 import net.sf.statcvs.Messages;
4 import net.sf.statcvs.output.ReportConfig;
5 import net.sf.statcvs.reportmodel.AuthorColumn;
6 import net.sf.statcvs.reportmodel.Table;
7
8 /**
9 * Table report which creates a table containing the names of
10 * all developers, their LOC contributions and number of changes over the last n months.
11 *
12 * @author Benoit Xhenseval
13 * @version $Id: DevelopersRollingTableReport.java,v 1.2 2009/03/11 16:28:45 benoitx Exp $
14 */
15 public class DevelopersRollingTableReport extends AbstractRollingLocTableReport implements TableReport {
16 private Table table = null;
17
18 /**
19 * Creates a table report containing all authors, their
20 * number of changes and LOC contributions.
21 * @param content the version control source data
22 */
23 public DevelopersRollingTableReport(final ReportConfig config) {
24 super(config);
25 }
26
27 /**
28 * @see net.sf.statcvs.reports.TableReport#calculate()
29 */
30 public void calculate() {
31 calculateChangesAndLinesPerDeveloper(getContent().getRevisions());
32 table = createChangesAndLinesTable(new AuthorColumn(), null, Messages.getString("AUTHORS_TABLE_SUMMARY"));
33 }
34
35 /**
36 * @see net.sf.statcvs.reports.TableReport#getTable()
37 */
38 public Table getTable() {
39 return table;
40 }
41 }