コード例 #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