コード例 #1
0
ファイル: aea.py プロジェクト: MissingNO57/agents-aea
    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()
コード例 #2
0
ファイル: agent_loop.py プロジェクト: zeta1999/agents-aea
 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()