# - - - - - c l a s s C e n s u s C e l l class CensusCell(Cell): '''Displays counts of individuals. Exports: CensusCell(): [ return a new, empty CensusCell instance ] .add(census): [ census is a pycbc.Census instance -> self := self with number of individuals added from census ]
Internally we maintain four counts: regular, questionable,
count-week, and questionable count-week. Each of these counts
is maintained as an instance of Section 43, “
class CensusTotal: Number of individuals in
one category”: that class handles the problem
of combining known numbers with unknown numbers.
State/Invariants: ._regular: [ number of regular individuals as a CensusTotal instance ] ._q: [ number of questionable individuals as a CensusTotal ] ._plus: [ number of count-week individuals as a CensusTotal ] ._qPlus: [ number of questionable count-week individuals as a CensusTotal ] ''' __slots__ = ('_regular', '_q', '_plus', '_qPlus')