aboutsummaryrefslogtreecommitdiff
path: root/behaviors/BehaviorChain.py
diff options
context:
space:
mode:
Diffstat (limited to 'behaviors/BehaviorChain.py')
-rw-r--r--behaviors/BehaviorChain.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/behaviors/BehaviorChain.py b/behaviors/BehaviorChain.py
new file mode 100644
index 0000000..15f7d74
--- /dev/null
+++ b/behaviors/BehaviorChain.py
@@ -0,0 +1,10 @@
+from operationscore.Behavior import *
+import Util
+import pdb
+class BehaviorChain(Behavior):
+ def processResponse(self, sensorInputs, recursiveInputs):
+ response = sensorInputs
+ for behaviorId in self['ChainedBehaviors']:
+ behavior = Util.getComponentById(behaviorId)
+ response = behavior.immediateProcessInput(response)
+ return response