Commit 40c500ab by serfrape

Allow BDI behaviour to be enabled/disabled

parent 013d3b92
...@@ -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")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment