def init(self):
     Logger().trace("AbstractHardwarePlugin.init()")
     AbstractPlugin.init(self)
     self._hardware.setDriver(self._driver)
     self._hardware.setNbRetry(
         ConfigManager().getInt('Plugins/HARDWARE_COM_RETRY'))
     self._hardware.init()
    def establishConnection(self):
        """ Establish the connexion with the driver.

        We pass self, so the driver can keep track of connected hardwares.
        """
        Logger().trace("AbstractHardwarePlugin.establishConnection()")
        self._driver.establishConnection(self)
        AbstractPlugin.establishConnection(self)
    def establishConnection(self):
        """ Establish the connexion with the driver.

        We pass self, so the driver can keep track of connected hardwares.
        """
        Logger().trace("AbstractHardwarePlugin.establishConnection()")
        self._driver.establishConnection(self)
        AbstractPlugin.establishConnection(self)
    def stopConnection(self):
        """ stop the connexion with the driver.

        We pass self, so the driver can keep track of disconnected hardwares.
        """
        Logger().trace("AbstractHardwarePlugin.stopConnection()")
        try:
            self._driver.shutdownConnection(self)
        finally:
            AbstractPlugin.stopConnection(self)
    def stopConnection(self):
        """ stop the connexion with the driver.

        We pass self, so the driver can keep track of disconnected hardwares.
        """
        Logger().trace("AbstractHardwarePlugin.stopConnection()")
        try:
            self._driver.shutdownConnection(self)
        finally:
            AbstractPlugin.stopConnection(self)
 def shutdown(self):
     Logger().trace("AbstractHardwarePlugin.shutdown()")
     AbstractPlugin.shutdown(self)
     self._hardware.shutdown()
 def init(self):
     Logger().trace("AbstractHardwarePlugin.init()")
     AbstractPlugin.init(self)
     self._hardware.setDriver(self._driver)
     self._hardware.setNbRetry(ConfigManager().getInt('Plugins/HARDWARE_COM_RETRY'))
     self._hardware.init()
 def shutdown(self):
     Logger().trace("AbstractHardwarePlugin.shutdown()")
     AbstractPlugin.shutdown(self)
     self._hardware.shutdown()