def __init__(self): ActionMonitor.__init__(self) self._cosinusesHist = {} self.ranges = [] start, step = 0.0, 0.05 while start < 1.0: label = "%.2f - %.2f" % (start, start + step) self.ranges.append((start, start + step, label)) self._cosinusesHist[label] = 0 start += step
def __init__(self): ActionMonitor.__init__(self) self._reproductionsCount = 0.0 self._fightsCount = 0.0 self._count = 0.0 self._failReproductions = 0.0 self._failFights = 0.0 self._dontHavePartnerCount = 0.0 self._partnerDuringMeeting = 0.0 self._maxReproductionsCount = None self._minReproductionsCount = None self._maxFightsCount = None self._minFightsCount = None self._meetingsCount = 0.0