diff options
author | Russell Cohen <rcoh@mit.edu> | 2011-01-20 14:57:43 -0500 |
---|---|---|
committer | Russell Cohen <rcoh@mit.edu> | 2011-01-20 14:57:43 -0500 |
commit | f45b5e262c394cf00ef88f7fca1eab1b4de0fec9 (patch) | |
tree | 0f513d55c859773e27f1f615f3160ef1f66124ce /behaviors/RecursiveDecay.py | |
parent | 0af38d1882291523d0d290a638e88be793f27678 (diff) |
Rewrite of Behavior parent class to suck less. Lots of bug fixes. Added
'RestrictLocation' which allows events to fire based on their location.
Diffstat (limited to 'behaviors/RecursiveDecay.py')
-rw-r--r-- | behaviors/RecursiveDecay.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/behaviors/RecursiveDecay.py b/behaviors/RecursiveDecay.py index ee38bc4..218813d 100644 --- a/behaviors/RecursiveDecay.py +++ b/behaviors/RecursiveDecay.py @@ -1,4 +1,5 @@ from operationscore.Behavior import * +import pdb class RecursiveDecay(Behavior): def processResponse(self, sensorInputs, recursiveInputs): ret = [] @@ -9,4 +10,4 @@ class RecursiveDecay(Behavior): response['ResponsesLeft'] -= 1 if response['ResponsesLeft'] > 0: ret.append(response) - return (ret, recursiveInputs) #no direct ouput + return (ret, []) #no direct ouput |