def __init__(self, **kwargs): self._siblings = None user_elements = kwargs.pop('user_elements') kwargs['elem_type'] = ElementType.PseudoCounter # don't switch the order of constructors! PoolBaseGroup.__init__(self, user_elements=user_elements, pool=kwargs['pool']) PoolBaseChannel.__init__(self, **kwargs)
def serialize(self, *args, **kwargs): kwargs = PoolBaseChannel.serialize(self, *args, **kwargs) elements = [elem.name for elem in self.get_user_elements()] physical_elements = [] for elem_list in self.get_physical_elements().values(): for elem in elem_list: physical_elements.append(elem.name) cl_name = self.__class__.__name__ cl_name = cl_name[4:] kwargs['elements'] = elements kwargs['physical_elements'] = physical_elements return kwargs
def serialize(self, *args, **kwargs): kwargs = PoolBaseChannel.serialize(self, *args, **kwargs) elements = [ elem.name for elem in self.get_user_elements() ] physical_elements = [] for elem_list in self.get_physical_elements().values(): for elem in elem_list: physical_elements.append(elem.name) cl_name = self.__class__.__name__ cl_name = cl_name[4:] kwargs['elements'] = elements kwargs['physical_elements'] = physical_elements return kwargs
def __init__(self, **kwargs): kwargs['elem_type'] = ElementType.ZeroDExpChannel PoolBaseChannel.__init__(self, **kwargs) self._current_value = CurrentValue(self, listeners=self.on_change)
def __init__(self, **kwargs): kwargs['elem_type'] = ElementType.CTExpChannel PoolBaseChannel.__init__(self, **kwargs)
def __init__(self, **kwargs): self._data_source = None kwargs['elem_type'] = ElementType.TwoDExpChannel PoolBaseChannel.__init__(self, **kwargs)