Next / Previous / Contents / TCC Help System / NM Tech homepage

5.2. Data structures for the history detail report

Refer to Section 4.4, “The detail history report” for definitions of terms and a general discussion of the layout of the detail report.

The first order of business is to design keys for the rows and columns that sort them into the proper order.

Here is how the various classes interrelate to produce the history detail report page.

Figure 1. Entity-relationship model of the detail page

Entity-relationship model of the detail page


Represents the entire history report.


Container for descriptions of the columns of one logical row. Determines which efforts are displayed in which logical rows.

This abstract class is implemented as two concrete classes. LumpedLayout allocates columns for the lumped-year option, and SplitLayout places each effort in a separate logical column.


A base class for the various kinds of logical rows.


The logical row in the heading that displays the column's CBC year number and, in the split presentation, the year key.


Base class for two kinds of rows for which we compute statistics.


The logical row in the heading that displays the total party-hours of effort.


One of the logical rows in the table body that displays data for one kind of bird.


Base class for labels in the first column.


Label for a heading row.


A label for a kind of bird. For compound bird names (hybrids and species pairs), the relationship code and second name will always occur on a separate line, like this:

    × Mallard

Base class for cells of the main table.


A table cell containing a column label.


A cell added between the last detail cell and the first suffix cell to satisfy the rule that the suffix cells must always occur at the end of the last physical row.


A parent class for cells that are used as data values for the computation of means and standard deviations.


A table cell containing a number of party-hours in float format.


A table cell that displays the numbers of one kind of bird. Internally, it holds four counts: regular, count-week, questionable, and questionable count-week.


A table cell containing a statistic in float format, to be displayed in a distinct style so that it isn't likely to be confused with a census cell.


A container for one physical row. It contains one RowLabel (or None if this is a continuation row), and a fixed number of cell slots, each of which is a Cell instance.

The figure above is an example of how a logical row might be folded into physical rows. For purposes of illustration, this table has only four columns, a row label plus three detail columns. Suppose the report covers five years; with the two statistics columns, that's a total of seven columns, so we'll need to fold each logical row into three physical rows, with two gray spacer cells added just before the statistics cells.