'Appends a value with an associated datetime.
.. note::
If dateTime is not None, it must be greater than the last one.'

def appendWithDateTime(self, dateTime, value):

    if ((dateTime is not None) and (len(self.__dateTimes) != 0) and (self.__dateTimes[(-1)] >= dateTime)):
        raise Exception('Invalid    datetime.    It    must    be    bigger    than    that    last    one')
    assert (len(self.__values) == len(self.__dateTimes))
    self.__dateTimes.append(dateTime)
    self.__values.append(value)
    self.getNewValueEvent().emit(self, dateTime, value)
