예제 #1
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)
        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
 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()