예제 #1
0
파일: telemetry.py 프로젝트: shenely/PyGS
 def _execute(self,telemetry):
     assert isinstance(telemetry,TelemetryMessage)
     
     logging.info("{0}:  Formatting from {1}".\
                  format(self.name,telemetry.epoch))
     
     message = encoder(telemetry)
     
     logging.info("{0}:  Formatted to {1}".\
                  format(self.name,message))
                  
     return message
예제 #2
0
파일: __init__.py 프로젝트: shenely/PyGS
 def _execute(self,epoch):
     assert isinstance(epoch,EpochState)
     
     logging.info("{0}:  Formatting from {1}".\
                  format(self.name,epoch.epoch))
     
     message = encoder(epoch)
     
     logging.info("{0}:  Formatted to {1}".\
                  format(self.name,message))
                  
     return message
예제 #3
0
파일: product.py 프로젝트: shenely/PyGS
 def _execute(self,product):
     assert isinstance(product,ProductMessage)
     
     logging.info("{0}:  Formatting from {1}".\
                  format(self.name,product.epoch))
     
     message = encoder(product)
     
     logging.info("{0}:  Formatted to {1}".\
                  format(self.name,message))
                  
     return message