def dev_status(self): # update current state AND status get_worker().execute(self._dev_state) # get the updated status as a string self._status = self.get_status() return self._status
def write(self, attr): value = attr.get_write_value() value = get_worker().execute(setattr, self.fuelcell, attr.get_name(), value)
def read(self, attr): value = get_worker().execute(getattr, self.fuelcell, attr.get_name()) attr.set_value(value)
def read(self, attr): method = getattr(self.channel_object, "get_" + attr.get_name()) value = get_worker().execute(method) attr.set_value(value)
def dev_state(self): return get_worker().execute(self._dev_state)
def read_custattr(self, attr): value = get_worker().execute(self.axis.get_setting, attr.get_name()) attr.set_value(value)
def read(self, attr): method = getattr(self.axis, "get_" + attr.get_name()) value = get_worker().execute(method) attr.set_value(value)
def cmd(self, *args, **kwargs): method = getattr(self.axis, cmd_name) return get_worker().execute(method, *args, **kwargs)
def cmd(self, *args, **kwargs): method = getattr(self.channel_object, cmd_name) return get_worker().execute(method, *args, **kwargs)
def read_longVarAttr(self, attr): worker = get_worker() value = worker.execute(self.__read_DynAttr, attr) attr.set_value(int(value))
def write(self, attr): method = getattr(self.axis, "set_" + attr.get_name()) value = attr.get_write_value() get_worker().execute(method, value)
def write_custattr(self, attr): get_worker().execute(self.axis.set_setting, attr.get_name(), attr.get_write_value())