def setup(self) -> None: """ Set up the agent. Performs the following: - loads the resources (unless in programmatic mode) - starts the task manager - starts the decision maker - calls setup() on the resources :return: None """ self.task_manager.start() self.decision_maker.start() self.resources.setup() ExecTimeoutThreadGuard.start()
def _setup(self) -> None: # pylint: disable=no-self-use """Set up loop before started.""" # start and stop methods are classmethods cause one instance shared across muiltiple threads ExecTimeoutThreadGuard.start()