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
0
Issues
0
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
jpalanca
SPADE-BDI
Commits
23e672a9
Commit
23e672a9
authored
Apr 11, 2019
by
serfrape
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Will change the order of PySon env creation
parent
b632d7e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bdi.py
spade_bdi/bdi.py
+2
-2
No files found.
spade_bdi/bdi.py
View file @
23e672a9
...
...
@@ -27,6 +27,7 @@ class BDIAgent(Agent):
def
add_behaviour
(
self
,
behaviour
,
template
=
None
):
if
type
(
behaviour
)
==
self
.
BDIBehaviour
:
self
.
bdi
=
behaviour
self
.
set_env
()
super
()
.
add_behaviour
(
behaviour
,
template
)
def
set_asl
(
self
,
asl
):
...
...
@@ -43,7 +44,6 @@ class BDIAgent(Agent):
def
set_env
(
self
):
self
.
bdi_env
=
pyson
.
runtime
.
Environment
()
self
.
bdi_actions
=
pyson
.
Actions
(
pyson
.
stdlib
.
actions
)
self
.
bdi
.
add_actions
()
def
__init__
(
self
,
jid
,
password
,
asl
=
None
,
*
args
,
**
kwargs
):
self
.
asl_file
=
asl
...
...
@@ -167,7 +167,7 @@ class BDIAgent(Agent):
"""
Coroutine called before the behaviour is started.
"""
self
.
a
gent
.
set_env
()
self
.
a
dd_actions
()
if
self
.
agent
.
asl_file
:
self
.
agent
.
set_asl
(
self
.
agent
.
asl_file
)
else
:
...
...
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