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

41. class PartyHoursCell: Heading row showing effort

An instance of this class represents the second heading row, showing the total party-hours of effort for each column (where known). For general remarks about the design of this class, see Section 40, “class NumberCell: Base class for numeric table cells”.
# - - - - -   c l a s s   P a r t y H o u r s C e l l

class PartyHoursCell(NumberCell):
    '''Displays a total party-hours of effort in a heading cell.

          [ if value is None ->
              return a new PartyHoursCell with no value
            else ->
              return a new PartyHoursCell with value (value) ]
          [ value is a float ->
              self  :=  self with value added to its value ]

          [ if no values have been added -> None
            else -> sum of all values added to self so far ]
    __slots__ = ('_total')