Ejemplo n.º 1
0
    def __init__(self,
                 full_name,
                 name=None,
                 macro_path=None,
                 environment_db=None,
                 recorder_path=None):
        # dict<str, Pool>
        # key   - device name (case insensitive)
        # value - Pool object representing the device name
        self._pools = CaselessDict()
        self._max_parallel_macros = self.MaxParalellMacros
        self._path_id = None

        MSContainer.__init__(self)
        MSObject.__init__(self,
                          full_name=full_name,
                          name=name,
                          id=InvalidId,
                          macro_server=self,
                          elem_type=ElementType.MacroServer)

        registerExtensions()

        self._type_manager = TypeManager(self)
        self._environment_manager = EnvironmentManager(
            self, environment_db=environment_db)
        self._macro_manager = MacroManager(self, macro_path=macro_path)
        self._recorder_manager = RecorderManager(self,
                                                 recorder_path=recorder_path)
Ejemplo n.º 2
0
 def __init__(self, **kwargs):
     self._state = None
     self._status = None
     self._result = None
     self._macro_status = None
     self._record_data = None
     self._macro_proxy_cache = None
     self._input_handler = BaseInputHandler()
     self._pylab_handler = None
     kwargs['elem_type'] = ElementType.Door
     MSObject.__init__(self, **kwargs)
Ejemplo n.º 3
0
    def __init__(self, full_name, name=None, macro_path=None, environment_db=None, recorder_path=None):
        # dict<str, Pool>
        # key   - device name (case insensitive)
        # value - Pool object representing the device name
        self._pools = CaselessDict()
        self._max_parallel_macros = self.MaxParalellMacros
        self._path_id = None

        MSContainer.__init__(self)
        MSObject.__init__(
            self, full_name=full_name, name=name, id=InvalidId, macro_server=self, elem_type=ElementType.MacroServer
        )

        registerExtensions()

        self._type_manager = TypeManager(self)
        self._environment_manager = EnvironmentManager(self, environment_db=environment_db)
        self._macro_manager = MacroManager(self, macro_path=macro_path)
        self._recorder_manager = RecorderManager(self, recorder_path=recorder_path)
Ejemplo n.º 4
0
 def serialize(self, *args, **kwargs):
     kwargs = MSObject.serialize(self, *args, **kwargs)
     kwargs['type'] = self.__class__.__name__
     kwargs['id'] = InvalidId
     kwargs['parent'] = None
     return kwargs
Ejemplo n.º 5
0
 def serialize(self, *args, **kwargs):
     kwargs = MSObject.serialize(self, *args, **kwargs)
     kwargs['type'] = self.__class__.__name__
     kwargs['id'] = InvalidId
     kwargs['parent'] = None
     return kwargs
Ejemplo n.º 6
0
 def serialize(self, *args, **kwargs):
     kwargs = MSObject.serialize(self, *args, **kwargs)
     kwargs["type"] = self.__class__.__name__
     kwargs["id"] = InvalidId
     kwargs["parent"] = None
     return kwargs