当前位置: 首页>>代码示例>>Python>>正文


Python ExecutableDevice.__init__方法代码示例

本文整理汇总了Python中ossie.device.ExecutableDevice.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ExecutableDevice.__init__方法的具体用法?Python ExecutableDevice.__init__怎么用?Python ExecutableDevice.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ossie.device.ExecutableDevice的用法示例。


在下文中一共展示了ExecutableDevice.__init__方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from ossie.device import ExecutableDevice [as 别名]
# 或者: from ossie.device.ExecutableDevice import __init__ [as 别名]
 def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams):
     ExecutableDevice.__init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams)
     self.threadControlLock = threading.RLock()
     self.process_thread = None
     # self.auto_start is deprecated and is only kept for API compatability
     # with 1.7.X and 1.8.0 components.  This variable may be removed
     # in future releases
     self.auto_start = False
开发者ID:horn545,项目名称:framework-core,代码行数:10,代码来源:test_collocation_device_base.py

示例2: __init__

# 需要导入模块: from ossie.device import ExecutableDevice [as 别名]
# 或者: from ossie.device.ExecutableDevice import __init__ [as 别名]
 def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams):
   ExecutableDevice.__init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams, PROPERTIES)
   AggregateDevice.__init__(self)
   self._props["memCapacity"] = 100000000
   self._props["BogoMipsCapacity"] = 100000000
   self._props["nicCapacity"] = 100.0
   self._props["fakeCapacity"] = 3
   self._props["execparams"] = " ".join(["%s %s" % x for x in execparams.items()])
开发者ID:Axios-Engineering,项目名称:framework-core,代码行数:10,代码来源:BasicTestDevice.py

示例3: __init__

# 需要导入模块: from ossie.device import ExecutableDevice [as 别名]
# 或者: from ossie.device.ExecutableDevice import __init__ [as 别名]
 def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams):
   self.exit_lock = threading.Lock()
   self.exit_lock.acquire()
   self.process_thread = threading.Thread(target=self.TerminationThread)
   ExecutableDevice.__init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams, PROPERTIES)
   AggregateDevice.__init__(self)
   self._props["memCapacity"] = 100000000
   self._props["BogoMipsCapacity"] = 100000000
   self._props["nicCapacity"] = 100.0
   self._props["fakeCapacity"] = 3
   self._props["execparams"] = " ".join(["%s %s" % x for x in execparams.items()])
开发者ID:Axios-Engineering,项目名称:framework-core,代码行数:13,代码来源:SelfTerminatingDevice.py

示例4: __init__

# 需要导入模块: from ossie.device import ExecutableDevice [as 别名]
# 或者: from ossie.device.ExecutableDevice import __init__ [as 别名]
    def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams):
        # NB: For now, the ports must be created before calling ExecutableDevice.__init__(),
        #     which registers with the DomainManager, otherwise a race condition may exist.
        #     The DomainManager attempts to make the connections from the DCD, and it is
        #     possible that getPort() will be called before __init__() completes.
        self.ports = {}
        self.ports['event_supplier'] = supplierOut_i(self, 'event_supplier')
        self.ports['event_consumer'] = consumerOut_i(self, 'event_consumer')

        ExecutableDevice.__init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams, PROPERTIES)
        self._props["memCapacity"] = 100000000
        self._props["BogoMipsCapacity"] = 100000000
开发者ID:RedhawkSDR,项目名称:framework-core,代码行数:14,代码来源:EventPortTestDevice.py

示例5: __init__

# 需要导入模块: from ossie.device import ExecutableDevice [as 别名]
# 或者: from ossie.device.ExecutableDevice import __init__ [as 别名]
    def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams):
        ExecutableDevice.__init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams, PROPERTIES)
        AggregateDevice.__init__(self)

        self.__MAX_MEMORY   = 2048
        self.__MAX_BOGOMIPS = 1024
        self.allocated_mem  = 0
        self.allocated_bog  = 0
        self.__mem_name     = 'memCapacity'
        self.__bog_name     = 'BogoMipsCapacity'
        self.__mem_id       = 'DCE:7aeaace8-350e-48da-8d77-f97c2e722e06'
        self.__bog_id       = 'DCE:bbdf708f-ce05-469f-8aed-f5c93e353e14'
开发者ID:Axios-Engineering,项目名称:framework-core,代码行数:14,代码来源:BasicTestDevice_python_impl1.py

示例6: __init__

# 需要导入模块: from ossie.device import ExecutableDevice [as 别名]
# 或者: from ossie.device.ExecutableDevice import __init__ [as 别名]
 def __init__ (self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams):
   ExecutableDevice.__init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams)
开发者ID:Axios-Engineering,项目名称:framework-core,代码行数:4,代码来源:BrokenExecutableDevice.py

示例7: __init__

# 需要导入模块: from ossie.device import ExecutableDevice [as 别名]
# 或者: from ossie.device.ExecutableDevice import __init__ [as 别名]
 def __init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams):
   ExecutableDevice.__init__(self, devmgr, uuid, label, softwareProfile, compositeDevice, execparams, PROPERTIES)
   AggregateDevice.__init__(self)
   self._props["memCapacity"] = 100000000
   self._props["BogoMipsCapacity"] = 100000000
开发者ID:Axios-Engineering,项目名称:framework-core,代码行数:7,代码来源:BasicTestDevice.py


注:本文中的ossie.device.ExecutableDevice.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。