コード例 #1
0
ファイル: dialogues.py プロジェクト: yangjue-han/agents-aea
    def __init__(self, agent_address: Address) -> None:
        """
        Initialize dialogues.

        :param agent_address: the address of the agent for whom dialogues are maintained
        :return: None
        """
        Dialogues.__init__(self, agent_address=agent_address)
        self._dialogue_stats = FipaDialogueStats()
コード例 #2
0
    def __init__(self) -> None:
        """
        Initialize dialogues.

        :return: None
        """
        BaseDialogues.__init__(self)
        self._dialogues_as_seller = {}  # type: Dict[DialogueLabel, Dialogue]
        self._dialogues_as_buyer = {}  # type: Dict[DialogueLabel, Dialogue]
コード例 #3
0
    def __init__(self) -> None:
        """
        Initialize dialogues.

        :return: None
        """
        Dialogues.__init__(self)
        self._initiated_dialogues = {}  # type: Dict[DialogueLabel, FIPADialogue]
        self._dialogues_as_seller = {}  # type: Dict[DialogueLabel, FIPADialogue]
        self._dialogues_as_buyer = {}  # type: Dict[DialogueLabel, FIPADialogue]
        self._dialogue_stats = FIPADialogueStats()
コード例 #4
0
    def __init__(self, agent_address: Address) -> None:
        """
        Initialize dialogues.

        :param agent_address: the address of the agent for whom dialogues are maintained
        :return: None
        """
        Dialogues.__init__(
            self,
            agent_address=agent_address,
            end_states=cast(FrozenSet[Dialogue.EndState], self.END_STATES),
        )
コード例 #5
0
ファイル: test_base.py プロジェクト: 8ball030/agents-aea
 def setup(cls):
     """Initialise the class."""
     cls.dialogue_label = DialogueLabel(dialogue_reference=(str(0), ''),
                                        dialogue_opponent_pbk="opponent",
                                        dialogue_starter_pbk="starter")
     cls.dialogue = Dialogue(dialogue_label=cls.dialogue_label)
     cls.dialogues = Dialogues()