def __init__(self, name=None, config=None): """ Initializes the actor handler. :param name: the name of the actor handler :type name: str :param config: the dictionary with the options (str -> object). :type config: dict """ super(ActorHandler, self).__init__(name=name, config=config) self._director = self.new_director() if not classes.has_dict_handler("ActorHandler"): classes.register_dict_handler("ActorHandler", ActorHandler.from_dict)
def __init__(self, name=None, config=None): """ Initializes the actor. :param name: the name of the actor :type name: str :param config: the dictionary with the options (str -> object). :type config: dict """ super(Actor, self).__init__(config=config) self._name = self.__class__.__name__ self._parent = None self._full_name = None self._stopped = False if name is not None: self.name = name if not classes.has_dict_handler("Actor"): classes.register_dict_handler("Actor", Actor.from_dict)