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
40c500ab
Commit
40c500ab
authored
Apr 02, 2019
by
serfrape
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow BDI behaviour to be enabled/disabled
parent
013d3b92
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
61 deletions
+76
-61
control.py
examples/control.py
+5
-2
bdi.py
spade_bdi/bdi.py
+71
-59
No files found.
examples/control.py
View file @
40c500ab
...
@@ -25,8 +25,11 @@ class BossAgent(BDIAgent):
...
@@ -25,8 +25,11 @@ class BossAgent(BDIAgent):
b
=
BDIAgent
(
"slave_1@localhost"
,
"bdisimple"
,
"slave.asl"
)
b
=
BDIAgent
(
"slave_1@localhost"
,
"bdisimple"
,
"slave.asl"
)
b
.
start
()
b
.
start
()
c
=
BDIAgent
(
"slave_2@localhost"
,
"bdisimple3"
,
"slave.asl"
)
c
=
BDIAgent
(
"slave_2@localhost"
,
"bdisimple3"
)
c
.
start
()
c
.
start
()
a
=
BossAgent
(
"Boss@localhost"
,
"bdiboss"
,
"boss.asl"
)
a
=
BossAgent
(
"Boss@localhost"
,
"bdiboss"
,
"boss.asl"
)
a
.
start
()
a
.
start
()
print
(
"started"
)
import
time
time
.
sleep
(
5
)
print
(
"Enabling BDI for slave2"
)
c
.
set_asl
(
"slave.asl"
)
spade_bdi/bdi.py
View file @
40c500ab
This diff is collapsed.
Click to expand it.
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