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