Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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
Example #4
0
 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
Example #5
0
 def __init__(self, **kwargs):
     kwargs['elem_type'] = ElementType.ZeroDExpChannel
     PoolBaseChannel.__init__(self, **kwargs)
     self._current_value = CurrentValue(self, listeners=self.on_change)
Example #6
0
 def __init__(self, **kwargs):
     kwargs['elem_type'] = ElementType.CTExpChannel
     PoolBaseChannel.__init__(self, **kwargs)
Example #7
0
 def __init__(self, **kwargs):
     self._data_source = None
     kwargs['elem_type'] = ElementType.TwoDExpChannel
     PoolBaseChannel.__init__(self, **kwargs)
Example #8
0
 def __init__(self, **kwargs):
     self._data_source = None
     kwargs['elem_type'] = ElementType.TwoDExpChannel
     PoolBaseChannel.__init__(self, **kwargs)
Example #9
0
 def __init__(self, **kwargs):
     kwargs['elem_type'] = ElementType.CTExpChannel
     PoolBaseChannel.__init__(self, **kwargs)