def addValue(self, value, time): index = Util.getPeriod(time, self.getPeriod(), self.getSimulationTime()) if index is not None: self.__values[index].append((value, time))
def incValue(self, time, period, simulationTime): index = Util.getPeriod(time, period, simulationTime) if index is not None: self.__values[index] += 1