Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sfp932705/spade_bdi
Plugin for SPADE 3 MAS platform to implement BDI Agents.
https://github.com/sfp932705/spade_bdi
Last synced: about 2 months ago
JSON representation
Plugin for SPADE 3 MAS platform to implement BDI Agents.
- Host: GitHub
- URL: https://github.com/sfp932705/spade_bdi
- Owner: sfp932705
- License: other
- Created: 2019-06-13T11:59:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T20:47:42.000Z (about 2 years ago)
- Last Synced: 2023-04-09T21:22:08.132Z (over 1 year ago)
- Language: Python
- Size: 47.9 KB
- Stars: 2
- Watchers: 2
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
=========
Spade-BDI
=========.. image:: https://img.shields.io/pypi/v/spade_bdi.svg
:target: https://pypi.python.org/pypi/spade_bdi.. image:: https://img.shields.io/travis/sfp932705/spade_bdi.svg
:target: https://travis-ci.org/sfp932705/spade_bdi.. image:: https://readthedocs.org/projects/spade-bdi/badge/?version=latest
:target: https://spade-bdi.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status.. image:: https://pyup.io/repos/github/sfp932705/spade_bdi/shield.svg
:target: https://pyup.io/repos/github/sfp932705/spade_bdi/
:alt: UpdatesImplement BDI Agents based on the SPADE MAS Platform
* Free software: GNU General Public License v3
* Documentation: https://spade-bdi.readthedocs.io. (to be done)Features
--------* Create agents that parse and execute an ASL file written in AgentSpeak.
Examples
--------basic.py::
import argparse
from spade_bdi.bdi import BDIAgentparser = argparse.ArgumentParser(description='spade bdi master-server example')
parser.add_argument('--server', type=str, default="localhost", help='XMPP server address.')
parser.add_argument('--password', type=str, default="bdipassword", help='XMPP password for the agents.')
args = parser.parse_args()a = BDIAgent("BasicAgent@" + args.server, args.password, "basic.asl")
a.start()a.bdi.set_belief("car", "blue", "big")
a.bdi.print_beliefs()print(a.bdi.get_belief("car"))
a.bdi.print_beliefs()
a.bdi.remove_belief("car", 'blue', "big")
a.bdi.print_beliefs()
print(a.bdi.get_beliefs())
a.bdi.set_belief("car", 'yellow')basic.asl::
!start.
+!start <-
+car(red);
.a_function(3,W);
.print("w =", W);
literal_function(red,Y);
.print("Y =", Y);
.custom_action(8);
+truck(blue).+car(Color)
<- .print("The car is ",Color).Credits
-------This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage