text: from rtamt.operation.abstract_operation import AbstractOperation
  from rtamt.operation.sample import Sample
  from rtamt.operation.sample import Time
  
  class NotOperation(AbstractOperation):
      def __init__(self):
          self.input = Sample()
  
      def addNewInput(self, sample):
          self.input.seq = sample.seq
          self.input.time.sec = sample.time.sec
          self.input.time.msec = sample.time.msec
          self.input.value = sample.value
  
      def update(self):
          out = Sample()
          val = - self.input.value
          out.time.sec = self.input.time.sec
          out.time.msec = self.input.time.msec
          out.seq = self.input.seq
          out.value = val
  
          return out