Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SPADE-BDI
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
serfrape
SPADE-BDI
Commits
b0c91547
Commit
b0c91547
authored
Jul 08, 2019
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release/0.1.2' into develop
parents
2588b417
e7c3eabf
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
5 deletions
+67
-5
HISTORY.rst
HISTORY.rst
+17
-0
README.rst
README.rst
+47
-2
setup.cfg
setup.cfg
+1
-1
setup.py
setup.py
+1
-1
__init__.py
spade_bdi/__init__.py
+1
-1
No files found.
HISTORY.rst
View file @
b0c91547
...
...
@@ -2,6 +2,23 @@
History
=======
0.1.2 (2019-07-08)
------------------
* Allow .send to a list of receivers.
* Allow to receive messages with lists of lists.
0.1.1 (2019-06-18)
------------------
* Moved from pyson to python-agentspeak
* Added some helpers like pause_bdi, resume_bdi.
* Now the asl file in the constructor is mandatory.
* Allow to send tell messages with no args.
* Allow sending messages with variables.
* Extended the examples.
0.1.0 (2019-03-09)
------------------
...
...
README.rst
View file @
b0c91547
...
...
@@ -24,13 +24,58 @@ Implement BDI Agents based on the SPADE MAS Platform
* Free software: GNU General Public License v3
* Documentation: https://spade-bdi.readthedocs.io.
* Documentation: https://spade-bdi.readthedocs.io.
(to be done)
Features
--------
* TODO
* Create agents that parse and execute an ASL file written in AgentSpeak.
Examples
--------
basic.py::
import argparse
from spade_bdi.bdi import BDIAgent
parser = 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
-------
...
...
setup.cfg
View file @
b0c91547
[bumpversion]
current_version = 0.1.
1
current_version = 0.1.
2
commit = True
tag = False
...
...
setup.py
View file @
b0c91547
...
...
@@ -48,6 +48,6 @@ setup(
test_suite
=
'tests'
,
tests_require
=
test_requirements
,
url
=
'https://github.com/sfp932705/spade_bdi'
,
version
=
'0.1.
1
'
,
version
=
'0.1.
2
'
,
zip_safe
=
False
,
)
spade_bdi/__init__.py
View file @
b0c91547
...
...
@@ -5,6 +5,6 @@ from . import bdi
__author__
=
"""Sergio Frayle Pérez"""
__email__
=
'sfp932705@gmail.com'
__version__
=
'0.1.
1
'
__version__
=
'0.1.
2
'
__all__
=
[
"bdi"
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment