Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Agent.py #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions abbas/honeybee/Agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class HoneyBee:
"""
mode:
-2 = Dancing, dacing...
-2 = Dancing, dancing...
-1 = Explorer returning to hive
0 = Exploring
1 = Exploiter waiting
Expand Down Expand Up @@ -41,20 +41,20 @@ def __init__(self, bclass, mode, x0, y0, Lx = 200, Ly = 200, v = 1.5,
## Main definitions
self.x = x0
self.y = y0
self.bclass = bclass
self.bclass = bclass # explorer or exploiter
self.mode = mode
self.spot = []

## Direct channel to the Hive
self.Hive = None
self.Hive = None # what does this mean?


## Keep track of the energy
self.energy = 0.


## Dyanmical variables
self.v = v
self.v = v # bee's velocity
self.v_explore = v
self.v_exploit = 1.0
self.tsigma = tsigma
Expand Down Expand Up @@ -141,7 +141,7 @@ def foundSpot(self):
def move(self, scale = 3):

## Exploring
if self.mode == 0 or self.mode == -3:
if self.mode == 0 or self.mode == -3: # what does -3 mean for mode?
self.updatePos()

## Found spot, returning home
Expand Down