def initialize(self):
            ExecutableDevice.initialize(self)
            
            # Instantiate the default implementations for all ports on this component
            self.port_dev_resource_in = PortCFResourceIn_i(self, "dev_resource_in")

            self.port_dev_resource_out = PortCFResourceOut_i(self, "dev_resource_out")
Пример #2
0
        def initialize(self):
            ExecutableDevice.initialize(self)
            
            # Instantiate the default implementations for all ports on this component
            self.port_dev_resource_in = PortCFResourceIn_i(self, "dev_resource_in")

            self.port_dev_resource_out = PortCFResourceOut_i(self, "dev_resource_out")
 def initialize(self):
   ExecutableDevice.initialize(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()])
   self._usageState = CF.Device.BUSY
Пример #4
0
 def initialize(self):
     ExecutableDevice.initialize(self)
Пример #5
0
 def initialize(self):
     ExecutableDevice.initialize(self)
     
     # Instantiate the default implementations for all ports on this component
     self.port_propEvent = PropertyEventSupplier(self)
Пример #6
0
 def initialize(self):
     ExecutableDevice.initialize(self)
     self.toTest = testOut_i(self, "resource_out")
     self.toDevMgr = devicemanagerOut_i(self, "devicemanager_out")
     self.fromOther = fromOther_i(self, "resource_in")
 def initialize(self):
     ExecutableDevice.initialize(self)
Пример #8
0
 def initialize(self):
     ExecutableDevice.initialize(self)
     self.toTest = testOut_i(self, "resource_out")
     self.toDevMgr = devicemanagerOut_i(self, "devicemanager_out")
     self.fromOther = fromOther_i(self, "resource_in")
 def initialize(self):
     ExecutableDevice.initialize(self)
     self.toTest = testOut_i(self, "resource_out")