API PADE

Aqui estão todos os módulos que são de interesse para utilização do PADE, tais como o módulo que contém a classe Agent, módulo de construção de mensagens e de construção de comportamentos.

Framework for Intelligent Agents Development - PADE

The MIT License (MIT)

Copyright (c) 2019 Lucas S Melo

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

class pade.acl.messages.ACLMessage(performative=None)

Class that implements a ACLMessage message type

add_receiver(aid)

Method used to add recipients for the message being created.

Parameters:aid – AID type object that identifies the agent that will receive the message.
add_reply_to(aid)

Method used to add the agents that should receive the answer of the message.

Parameters:aid – AID type object that identifies the agent that will receive the answer of this message.
create_reply()

Creates a reply for the message Duplicates all the message structures exchanges the ‘from’ AID with the ‘to’ AID

set_performative(performative)

Method to set the Performative parameter of the ACL message.

Parameters:performative – performative type of the message.

It can be any of the attributes of the ACLMessage class.

set_sender(aid)

Method to set the agent that will send the message.

Parameters:aid – AID type object that identifies the agent that will send the message.