View Javadoc

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.AuthorIdColumn;
7   import net.sf.statcvs.reportmodel.Table;
8   
9   /**
10   * Table report which creates a table containing the names of
11   * all developers, their LOC contributions and number of changes.
12   * 
13   * @author Richard Cyganiak (richard@cyganiak.de)
14   * @version $Id: DevelopersTableReport.java,v 1.3 2008/04/02 11:22:15 benoitx Exp $
15   */
16  public class DevelopersTableReport extends AbstractLocTableReport implements TableReport {
17      private Table table = null;
18  
19      /**
20       * Creates a table report containing all authors, their
21       * number of changes and LOC contributions.
22       * @param content the version control source data
23       */
24      public DevelopersTableReport(final ReportConfig config) {
25          super(config);
26      }
27  
28      /**
29       * @see net.sf.statcvs.reports.TableReport#calculate()
30       */
31      public void calculate() {
32          calculateChangesAndLinesPerDeveloper(getContent().getRevisions());
33          table = createChangesAndLinesTable(new AuthorColumn(), new AuthorIdColumn(), Messages.getString("AUTHORS_TABLE_SUMMARY"));
34      }
35  
36      /**
37       * @see net.sf.statcvs.reports.TableReport#getTable()
38       */
39      public Table getTable() {
40          return table;
41      }
42  }