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