From a9d8716e974611f17f2a66b66d905cb81cffa5fc Mon Sep 17 00:00:00 2001 From: rcoh Date: Sat, 12 Feb 2011 16:42:59 -0500 Subject: Add new behaviors to the BQS --- LightInstallation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'LightInstallation.py') diff --git a/LightInstallation.py b/LightInstallation.py index c1f01e8..aba5ae1 100755 --- a/LightInstallation.py +++ b/LightInstallation.py @@ -7,6 +7,7 @@ import pdb, sys, time, thread import util.TimeOps as clock import util.Config as configGetter import util.ComponentRegistry as compReg +import util.BehaviorQuerySystem as bqs from logger import main_log #Python class to instantiate and drive a Screen through different patterns, #and effects. @@ -27,7 +28,8 @@ class LightInstallation(object): self.screen = Screen() compReg.initRegistry() compReg.registerComponent(self.screen, 'Screen') #TODO: move to constants file - + + bqs.initBQS() #initialize the behavior query system #read configs from xml config = configGetter.loadConfigFile(configFileName) @@ -171,6 +173,7 @@ class LightInstallation(object): self.behaviors = self.initializeComponent(behaviorConfig) for behavior in self.behaviors: self.addBehavior(behavior) + bqs.addBehavior(behavior) def addBehavior(self, behavior): """Does work needed to add a behavior: currently -- maps behavior inputs into the input behavior -- cgit v1.2.3