示例#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