本文整理匯總了Python中ossie.device.ExecutableDevice.execute方法的典型用法代碼示例。如果您正苦於以下問題:Python ExecutableDevice.execute方法的具體用法?Python ExecutableDevice.execute怎麽用?Python ExecutableDevice.execute使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ossie.device.ExecutableDevice
的用法示例。
在下文中一共展示了ExecutableDevice.execute方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: execute
# 需要導入模塊: from ossie.device import ExecutableDevice [as 別名]
# 或者: from ossie.device.ExecutableDevice import execute [as 別名]
def execute(self, name, options, parameters):
retval = ExecutableDevice.execute(self, name, options, parameters)
for option in options:
if option.id == 'STACK_SIZE':
self._props['check_STACK_SIZE'] = option.value._v
elif option.id == 'PRIORITY':
self._props['check_PRIORITY'] = option.value._v
return retval
示例2: execute
# 需要導入模塊: from ossie.device import ExecutableDevice [as 別名]
# 或者: from ossie.device.ExecutableDevice import execute [as 別名]
def execute (self, *args):
if self.crashEnabled:
os.kill(os.getpid(), signal.SIGKILL)
return ExecutableDevice.execute(self, *args)