aboutsummaryrefslogtreecommitdiff
path: root/html/SmootLight.operationscore.Behavior-pysrc.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/SmootLight.operationscore.Behavior-pysrc.html')
-rw-r--r--html/SmootLight.operationscore.Behavior-pysrc.html390
1 files changed, 390 insertions, 0 deletions
diff --git a/html/SmootLight.operationscore.Behavior-pysrc.html b/html/SmootLight.operationscore.Behavior-pysrc.html
new file mode 100644
index 0000000..ff47613
--- /dev/null
+++ b/html/SmootLight.operationscore.Behavior-pysrc.html
@@ -0,0 +1,390 @@
+<?xml version="1.0" encoding="ascii"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>SmootLight.operationscore.Behavior</title>
+ <link rel="stylesheet" href="epydoc.css" type="text/css" />
+ <script type="text/javascript" src="epydoc.js"></script>
+</head>
+
+<body bgcolor="white" text="black" link="blue" vlink="#204080"
+ alink="#204080">
+<!-- ==================== NAVIGATION BAR ==================== -->
+<table class="navbar" border="0" width="100%" cellpadding="0"
+ bgcolor="#a0c0ff" cellspacing="0">
+ <tr valign="middle">
+ <!-- Home link -->
+ <th>&nbsp;&nbsp;&nbsp;<a
+ href="SmootLight-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
+
+ <!-- Tree link -->
+ <th>&nbsp;&nbsp;&nbsp;<a
+ href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
+
+ <!-- Index link -->
+ <th>&nbsp;&nbsp;&nbsp;<a
+ href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
+
+ <!-- Help link -->
+ <th>&nbsp;&nbsp;&nbsp;<a
+ href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
+
+ <th class="navbar" width="100%"></th>
+ </tr>
+</table>
+<table width="100%" cellpadding="0" cellspacing="0">
+ <tr valign="top">
+ <td width="100%">
+ <span class="breadcrumbs">
+ <a href="SmootLight-module.html">Package&nbsp;SmootLight</a> ::
+ <a href="SmootLight.operationscore-module.html">Package&nbsp;operationscore</a> ::
+ Module&nbsp;Behavior
+ </span>
+ </td>
+ <td>
+ <table cellpadding="0" cellspacing="0">
+ <!-- hide/show private -->
+ <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
+ onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
+ <tr><td align="right"><span class="options"
+ >[<a href="frames.html" target="_top">frames</a
+ >]&nbsp;|&nbsp;<a href="SmootLight.operationscore.Behavior-pysrc.html"
+ target="_top">no&nbsp;frames</a>]</span></td></tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<h1 class="epydoc">Source Code for <a href="SmootLight.operationscore.Behavior-module.html">Module SmootLight.operationscore.Behavior</a></h1>
+<pre class="py-src">
+<a name="L1"></a><tt class="py-lineno"> 1</tt> <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">pdb</tt> </tt>
+<a name="L2"></a><tt class="py-lineno"> 2</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package SmootLight.operationscore=SmootLight.operationscore-module.html"><a title="SmootLight.operationscore" class="py-name" href="#" onclick="return doclink('link-0', 'operationscore', 'link-0');">operationscore</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Module SmootLight.operationscore.SmootCoreObject=SmootLight.operationscore.SmootCoreObject-module.html,Class SmootLight.operationscore.SmootCoreObject.SmootCoreObject=SmootLight.operationscore.SmootCoreObject.SmootCoreObject-class.html"><a title="SmootLight.operationscore.SmootCoreObject
+SmootLight.operationscore.SmootCoreObject.SmootCoreObject" class="py-name" href="#" onclick="return doclink('link-1', 'SmootCoreObject', 'link-1');">SmootCoreObject</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
+<a name="L3"></a><tt class="py-lineno"> 3</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-2" class="py-name" targets="Package SmootLight.logger=SmootLight.logger-module.html"><a title="SmootLight.logger" class="py-name" href="#" onclick="return doclink('link-2', 'logger', 'link-2');">logger</a></tt> <tt class="py-keyword">import</tt> <tt id="link-3" class="py-name" targets="Variable SmootLight.behaviors.AllPixels.main_log=SmootLight.behaviors.AllPixels-module.html#main_log,Variable SmootLight.behaviors.AllPixelsLeft.main_log=SmootLight.behaviors.AllPixelsLeft-module.html#main_log,Variable SmootLight.behaviors.Circle.main_log=SmootLight.behaviors.Circle-module.html#main_log,Variable SmootLight.behaviors.ColorChangerBehavior.main_log=SmootLight.behaviors.ColorChangerBehavior-module.html#main_log,Variable SmootLight.behaviors.ColorShift.main_log=SmootLight.behaviors.ColorShift-module.html#main_log,Variable SmootLight.behaviors.DecayBehavior.main_log=SmootLight.behaviors.DecayBehavior-module.html#main_log,Variable SmootLight.behaviors.EchoBehavior.main_log=SmootLight.behaviors.EchoBehavior-module.html#main_log,Variable SmootLight.behaviors.Expand.main_log=SmootLight.behaviors.Expand-module.html#main_log,Variable SmootLight.behaviors.Flasher.main_log=SmootLight.behaviors.Flasher-module.html#main_log,Variable SmootLight.behaviors.MITDoors.main_log=SmootLight.behaviors.MITDoors-module.html#main_log,Variable SmootLight.behaviors.MobileShakeBehavior.main_log=SmootLight.behaviors.MobileShakeBehavior-module.html#main_log,Variable SmootLight.behaviors.ModifyParam.main_log=SmootLight.behaviors.ModifyParam-module.html#main_log,Variable SmootLight.behaviors.ModulateColor.main_log=SmootLight.behaviors.ModulateColor-module.html#main_log,Variable SmootLight.behaviors.MoveBehavior.main_log=SmootLight.behaviors.MoveBehavior-module.html#main_log,Variable SmootLight.behaviors.Oval.main_log=SmootLight.behaviors.Oval-module.html#main_log,Variable SmootLight.behaviors.RandomSetBrightColorBehavior.main_log=SmootLight.behaviors.RandomSetBrightColorBehavior-module.html#main_log,Variable SmootLight.behaviors.RandomWalk.main_log=SmootLight.behaviors.RandomWalk-module.html#main_log,Variable SmootLight.behaviors.RecursiveDecay.main_log=SmootLight.behaviors.RecursiveDecay-module.html#main_log,Variable SmootLight.behaviors.ResponseMover.main_log=SmootLight.behaviors.ResponseMover-module.html#main_log,Variable SmootLight.behaviors.RestrictLocation.main_log=SmootLight.behaviors.RestrictLocation-module.html#main_log,Variable SmootLight.behaviors.RiseFall.main_log=SmootLight.behaviors.RiseFall-module.html#main_log,Variable SmootLight.behaviors.RunningBehavior.main_log=SmootLight.behaviors.RunningBehavior-module.html#main_log,Variable SmootLight.behaviors.Sink.main_log=SmootLight.behaviors.Sink-module.html#main_log,Variable SmootLight.behaviors.SmootWind.main_log=SmootLight.behaviors.SmootWind-module.html#main_log,Variable SmootLight.behaviors.Square.main_log=SmootLight.behaviors.Square-module.html#main_log,Variable SmootLight.behaviors.SwitchBehavior.main_log=SmootLight.behaviors.SwitchBehavior-module.html#main_log,Variable SmootLight.behaviors.SynchTest.main_log=SmootLight.behaviors.SynchTest-module.html#main_log,Variable SmootLight.behaviors.TimedDie.main_log=SmootLight.behaviors.TimedDie-module.html#main_log,Variable SmootLight.behaviors.Timeout.main_log=SmootLight.behaviors.Timeout-module.html#main_log,Variable SmootLight.behaviors.VerticalBar.main_log=SmootLight.behaviors.VerticalBar-module.html#main_log,Variable SmootLight.behaviors.XYMove.main_log=SmootLight.behaviors.XYMove-module.html#main_log,Variable SmootLight.inputs.ContinuousCenterInput.main_log=SmootLight.inputs.ContinuousCenterInput-module.html#main_log,Variable SmootLight.inputs.ContinuousLocationInput.main_log=SmootLight.inputs.ContinuousLocationInput-module.html#main_log,Variable SmootLight.inputs.HTMLInput.main_log=SmootLight.inputs.HTMLInput-module.html#main_log,Variable SmootLight.inputs.PygameInput.main_log=SmootLight.inputs.PygameInput-module.html#main_log,Variable SmootLight.inputs.RandomLocs.main_log=SmootLight.inputs.RandomLocs-module.html#main_log,Variable SmootLight.inputs.UDPInput.main_log=SmootLight.inputs.UDPInput-module.html#main_log,Variable SmootLight.logger.Logger.main_log=SmootLight.logger.Logger-module.html#main_log,Variable SmootLight.pixelcore.PixelStrip.main_log=SmootLight.pixelcore.PixelStrip-module.html#main_log,Variable SmootLight.pixelmappers.C5SignMapper.main_log=SmootLight.pixelmappers.C5SignMapper-module.html#main_log,Variable SmootLight.pixelmappers.GaussianMapper.main_log=SmootLight.pixelmappers.GaussianMapper-module.html#main_log,Variable SmootLight.pixelmappers.SimpleMapper.main_log=SmootLight.pixelmappers.SimpleMapper-module.html#main_log,Variable SmootLight.pixelmappers.WindGaussianMapper.main_log=SmootLight.pixelmappers.WindGaussianMapper-module.html#main_log,Variable SmootLight.tests.TestBQS'.main_log=SmootLight.tests.TestBQS%27-module.html#main_log"><a title="SmootLight.behaviors.AllPixels.main_log
+SmootLight.behaviors.AllPixelsLeft.main_log
+SmootLight.behaviors.Circle.main_log
+SmootLight.behaviors.ColorChangerBehavior.main_log
+SmootLight.behaviors.ColorShift.main_log
+SmootLight.behaviors.DecayBehavior.main_log
+SmootLight.behaviors.EchoBehavior.main_log
+SmootLight.behaviors.Expand.main_log
+SmootLight.behaviors.Flasher.main_log
+SmootLight.behaviors.MITDoors.main_log
+SmootLight.behaviors.MobileShakeBehavior.main_log
+SmootLight.behaviors.ModifyParam.main_log
+SmootLight.behaviors.ModulateColor.main_log
+SmootLight.behaviors.MoveBehavior.main_log
+SmootLight.behaviors.Oval.main_log
+SmootLight.behaviors.RandomSetBrightColorBehavior.main_log
+SmootLight.behaviors.RandomWalk.main_log
+SmootLight.behaviors.RecursiveDecay.main_log
+SmootLight.behaviors.ResponseMover.main_log
+SmootLight.behaviors.RestrictLocation.main_log
+SmootLight.behaviors.RiseFall.main_log
+SmootLight.behaviors.RunningBehavior.main_log
+SmootLight.behaviors.Sink.main_log
+SmootLight.behaviors.SmootWind.main_log
+SmootLight.behaviors.Square.main_log
+SmootLight.behaviors.SwitchBehavior.main_log
+SmootLight.behaviors.SynchTest.main_log
+SmootLight.behaviors.TimedDie.main_log
+SmootLight.behaviors.Timeout.main_log
+SmootLight.behaviors.VerticalBar.main_log
+SmootLight.behaviors.XYMove.main_log
+SmootLight.inputs.ContinuousCenterInput.main_log
+SmootLight.inputs.ContinuousLocationInput.main_log
+SmootLight.inputs.HTMLInput.main_log
+SmootLight.inputs.PygameInput.main_log
+SmootLight.inputs.RandomLocs.main_log
+SmootLight.inputs.UDPInput.main_log
+SmootLight.logger.Logger.main_log
+SmootLight.pixelcore.PixelStrip.main_log
+SmootLight.pixelmappers.C5SignMapper.main_log
+SmootLight.pixelmappers.GaussianMapper.main_log
+SmootLight.pixelmappers.SimpleMapper.main_log
+SmootLight.pixelmappers.WindGaussianMapper.main_log
+SmootLight.tests.TestBQS'.main_log" class="py-name" href="#" onclick="return doclink('link-3', 'main_log', 'link-3');">main_log</a></tt> </tt>
+<a name="Behavior"></a><div id="Behavior-def"><a name="L4"></a><tt class="py-lineno"> 4</tt> <a class="py-toggle" href="#" id="Behavior-toggle" onclick="return toggle('Behavior');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="SmootLight.operationscore.Behavior.Behavior-class.html">Behavior</a><tt class="py-op">(</tt><tt class="py-base-class">SmootCoreObject</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+</div><div id="Behavior-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="Behavior-expanded"><a name="L5"></a><tt class="py-lineno"> 5</tt> <tt class="py-line"> <tt class="py-docstring">"""Abstract class for a behavior. On every time step, the behavior is passed the</tt> </tt>
+<a name="L6"></a><tt class="py-lineno"> 6</tt> <tt class="py-line"><tt class="py-docstring"> inputs from all sensors it is bound to as well as any recursive inputs that it</tt> </tt>
+<a name="L7"></a><tt class="py-lineno"> 7</tt> <tt class="py-line"><tt class="py-docstring"> spawned during the last time step. Inheriting classes MUST define</tt> </tt>
+<a name="L8"></a><tt class="py-lineno"> 8</tt> <tt class="py-line"><tt class="py-docstring"> processResponse. processResponse should return a list of dictionaries which</tt> </tt>
+<a name="L9"></a><tt class="py-lineno"> 9</tt> <tt class="py-line"><tt class="py-docstring"> define the properties of the light response, (outputs, recursions). They must give a location and</tt> </tt>
+<a name="L10"></a><tt class="py-lineno">10</tt> <tt class="py-line"><tt class="py-docstring"> color. They may define a PixelEvent to more closely control the outgoing</tt> </tt>
+<a name="L11"></a><tt class="py-lineno">11</tt> <tt class="py-line"><tt class="py-docstring"> data, however, this is normally handled by routing the event to a behavior</tt> </tt>
+<a name="L12"></a><tt class="py-lineno">12</tt> <tt class="py-line"><tt class="py-docstring"> specifically designed to do this (like AddPixelEvent). </tt> </tt>
+<a name="L13"></a><tt class="py-lineno">13</tt> <tt class="py-line"><tt class="py-docstring"> timeStep is called on every iteration of the LightInstallation</tt> </tt>
+<a name="L14"></a><tt class="py-lineno">14</tt> <tt class="py-line"><tt class="py-docstring"> addInput is called on each individual input received, and the inputs queue"""</tt> </tt>
+<a name="L15"></a><tt class="py-lineno">15</tt> <tt class="py-line"> </tt>
+<a name="Behavior.init"></a><div id="Behavior.init-def"><a name="L16"></a><tt class="py-lineno">16</tt> <a class="py-toggle" href="#" id="Behavior.init-toggle" onclick="return toggle('Behavior.init');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.operationscore.Behavior.Behavior-class.html#init">init</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+</div><div id="Behavior.init-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Behavior.init-expanded"><a name="L17"></a><tt class="py-lineno">17</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Method SmootLight.operationscore.SmootCoreObject.SmootCoreObject.validateArgs()=SmootLight.operationscore.SmootCoreObject.SmootCoreObject-class.html#validateArgs"><a title="SmootLight.operationscore.SmootCoreObject.SmootCoreObject.validateArgs" class="py-name" href="#" onclick="return doclink('link-4', 'validateArgs', 'link-4');">validateArgs</a></tt><tt class="py-op">(</tt><tt class="py-string">'Behavior.params'</tt><tt class="py-op">)</tt> </tt>
+<a name="L18"></a><tt class="py-lineno">18</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'Inputs'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+<a name="L19"></a><tt class="py-lineno">19</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'Inputs'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'Inputs'</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
+<a name="L20"></a><tt class="py-lineno">20</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">recursiveResponseQueue</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
+<a name="L21"></a><tt class="py-lineno">21</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sensorResponseQueue</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
+<a name="L22"></a><tt class="py-lineno">22</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">outGoingQueue</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
+<a name="L23"></a><tt class="py-lineno">23</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">lastState</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
+<a name="L24"></a><tt class="py-lineno">24</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name" targets="Method SmootLight.behaviors.AddPixelEvent.AddPixelEvent.behaviorInit()=SmootLight.behaviors.AddPixelEvent.AddPixelEvent-class.html#behaviorInit,Method SmootLight.behaviors.BehaviorChain.BehaviorChain.behaviorInit()=SmootLight.behaviors.BehaviorChain.BehaviorChain-class.html#behaviorInit,Method SmootLight.behaviors.ControllerOSC.ControllerOSC.behaviorInit()=SmootLight.behaviors.ControllerOSC.ControllerOSC-class.html#behaviorInit,Method SmootLight.behaviors.ExpandingColorZones.ExpandingColorZones.behaviorInit()=SmootLight.behaviors.ExpandingColorZones.ExpandingColorZones-class.html#behaviorInit,Method SmootLight.behaviors.MITDoors.MITDoors.behaviorInit()=SmootLight.behaviors.MITDoors.MITDoors-class.html#behaviorInit,Method SmootLight.behaviors.MobileShakeBehavior.MobileShakeBehavior.behaviorInit()=SmootLight.behaviors.MobileShakeBehavior.MobileShakeBehavior-class.html#behaviorInit,Method SmootLight.behaviors.MrmrSetColor.MrmrSetColor.behaviorInit()=SmootLight.behaviors.MrmrSetColor.MrmrSetColor-class.html#behaviorInit,Method SmootLight.behaviors.RestrictLocation.RestrictLocation.behaviorInit()=SmootLight.behaviors.RestrictLocation.RestrictLocation-class.html#behaviorInit,Method SmootLight.behaviors.SmootWind.SmootWind.behaviorInit()=SmootLight.behaviors.SmootWind.SmootWind-class.html#behaviorInit,Method SmootLight.behaviors.SwitchBehavior.SwitchBehavior.behaviorInit()=SmootLight.behaviors.SwitchBehavior.SwitchBehavior-class.html#behaviorInit,Method SmootLight.behaviors.SynchTest.SynchTest.behaviorInit()=SmootLight.behaviors.SynchTest.SynchTest-class.html#behaviorInit,Method SmootLight.behaviors.TimeSwitch.TimeSwitch.behaviorInit()=SmootLight.behaviors.TimeSwitch.TimeSwitch-class.html#behaviorInit,Method SmootLight.behaviors.TouchOSC.TouchOSC.behaviorInit()=SmootLight.behaviors.TouchOSC.TouchOSC-class.html#behaviorInit,Method SmootLight.operationscore.Behavior.Behavior.behaviorInit()=SmootLight.operationscore.Behavior.Behavior-class.html#behaviorInit"><a title="SmootLight.behaviors.AddPixelEvent.AddPixelEvent.behaviorInit
+SmootLight.behaviors.BehaviorChain.BehaviorChain.behaviorInit
+SmootLight.behaviors.ControllerOSC.ControllerOSC.behaviorInit
+SmootLight.behaviors.ExpandingColorZones.ExpandingColorZones.behaviorInit
+SmootLight.behaviors.MITDoors.MITDoors.behaviorInit
+SmootLight.behaviors.MobileShakeBehavior.MobileShakeBehavior.behaviorInit
+SmootLight.behaviors.MrmrSetColor.MrmrSetColor.behaviorInit
+SmootLight.behaviors.RestrictLocation.RestrictLocation.behaviorInit
+SmootLight.behaviors.SmootWind.SmootWind.behaviorInit
+SmootLight.behaviors.SwitchBehavior.SwitchBehavior.behaviorInit
+SmootLight.behaviors.SynchTest.SynchTest.behaviorInit
+SmootLight.behaviors.TimeSwitch.TimeSwitch.behaviorInit
+SmootLight.behaviors.TouchOSC.TouchOSC.behaviorInit
+SmootLight.operationscore.Behavior.Behavior.behaviorInit" class="py-name" href="#" onclick="return doclink('link-5', 'behaviorInit', 'link-5');">behaviorInit</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
+</div><a name="L25"></a><tt class="py-lineno">25</tt> <tt class="py-line"> </tt>
+<a name="Behavior.behaviorInit"></a><div id="Behavior.behaviorInit-def"><a name="L26"></a><tt class="py-lineno">26</tt> <a class="py-toggle" href="#" id="Behavior.behaviorInit-toggle" onclick="return toggle('Behavior.behaviorInit');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.operationscore.Behavior.Behavior-class.html#behaviorInit">behaviorInit</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+</div><div id="Behavior.behaviorInit-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Behavior.behaviorInit-expanded"><a name="L27"></a><tt class="py-lineno">27</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
+</div><a name="L28"></a><tt class="py-lineno">28</tt> <tt class="py-line"> </tt>
+<a name="Behavior.addMapper"></a><div id="Behavior.addMapper-def"><a name="L29"></a><tt class="py-lineno">29</tt> <a class="py-toggle" href="#" id="Behavior.addMapper-toggle" onclick="return toggle('Behavior.addMapper');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.operationscore.Behavior.Behavior-class.html#addMapper">addMapper</a><tt class="py-op">(</tt><tt class="py-param">fn</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+</div><div id="Behavior.addMapper-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Behavior.addMapper-expanded"><a name="L30"></a><tt class="py-lineno">30</tt> <tt class="py-line"> <tt class="py-keyword">def</tt> <tt class="py-def-name">withmap</tt><tt class="py-op">(</tt><tt class="py-param">fn</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+<a name="L31"></a><tt class="py-lineno">31</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Method SmootLight.operationscore.Behavior.Behavior.addMapperToResponse()=SmootLight.operationscore.Behavior.Behavior-class.html#addMapperToResponse"><a title="SmootLight.operationscore.Behavior.Behavior.addMapperToResponse" class="py-name" href="#" onclick="return doclink('link-6', 'addMapperToResponse', 'link-6');">addMapperToResponse</a></tt><tt class="py-op">(</tt><tt class="py-name">fn</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
+</div><a name="L32"></a><tt class="py-lineno">32</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">withmap</tt> </tt>
+</div><a name="L33"></a><tt class="py-lineno">33</tt> <tt class="py-line"> </tt>
+<a name="Behavior.processResponse"></a><div id="Behavior.processResponse-def"><a name="L34"></a><tt class="py-lineno">34</tt> <a class="py-toggle" href="#" id="Behavior.processResponse-toggle" onclick="return toggle('Behavior.processResponse');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.operationscore.Behavior.Behavior-class.html#processResponse">processResponse</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">sensorInputs</tt><tt class="py-op">,</tt> <tt class="py-param">recursiveInputs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+</div><div id="Behavior.processResponse-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Behavior.processResponse-expanded"><a name="L35"></a><tt class="py-lineno">35</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">Exception</tt><tt class="py-op">(</tt><tt class="py-string">'ProcessResponse not defined!'</tt><tt class="py-op">)</tt> </tt>
+</div><a name="L36"></a><tt class="py-lineno">36</tt> <tt class="py-line"> </tt>
+<a name="Behavior.addInput"></a><div id="Behavior.addInput-def"><a name="L37"></a><tt class="py-lineno">37</tt> <a class="py-toggle" href="#" id="Behavior.addInput-toggle" onclick="return toggle('Behavior.addInput');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.operationscore.Behavior.Behavior-class.html#addInput">addInput</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">sensorInput</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+</div><div id="Behavior.addInput-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Behavior.addInput-expanded"><a name="L38"></a><tt class="py-lineno">38</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sensorResponseQueue</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">sensorInput</tt><tt class="py-op">)</tt> </tt>
+</div><a name="L39"></a><tt class="py-lineno">39</tt> <tt class="py-line"> </tt>
+<a name="L40"></a><tt class="py-lineno">40</tt> <tt class="py-line"> <tt class="py-comment">#used for behavior chaining</tt> </tt>
+<a name="L41"></a><tt class="py-lineno">41</tt> <tt class="py-line"> </tt>
+<a name="Behavior.immediateProcessInput"></a><div id="Behavior.immediateProcessInput-def"><a name="L42"></a><tt class="py-lineno">42</tt> <a class="py-toggle" href="#" id="Behavior.immediateProcessInput-toggle" onclick="return toggle('Behavior.immediateProcessInput');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.operationscore.Behavior.Behavior-class.html#immediateProcessInput">immediateProcessInput</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">sensorInputs</tt><tt class="py-op">,</tt> <tt class="py-param">recursiveInputs</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+</div><a name="L43"></a><tt class="py-lineno">43</tt> <tt class="py-line"> <tt class="py-op">(</tt><tt class="py-name">outputs</tt><tt class="py-op">,</tt><tt class="py-name">recursions</tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Method SmootLight.LightInstallation.LightInstallation.processResponse()=SmootLight.LightInstallation.LightInstallation-class.html#processResponse,Method SmootLight.behaviors.AddPixelEvent.AddPixelEvent.processResponse()=SmootLight.behaviors.AddPixelEvent.AddPixelEvent-class.html#processResponse,Method SmootLight.behaviors.AllPixels.AllPixels.processResponse()=SmootLight.behaviors.AllPixels.AllPixels-class.html#processResponse,Method SmootLight.behaviors.AllPixelsLeft.AllPixelsLeft.processResponse()=SmootLight.behaviors.AllPixelsLeft.AllPixelsLeft-class.html#processResponse,Method SmootLight.behaviors.BehaviorChain.BehaviorChain.processResponse()=SmootLight.behaviors.BehaviorChain.BehaviorChain-class.html#processResponse,Method SmootLight.behaviors.Circle.Circle.processResponse()=SmootLight.behaviors.Circle.Circle-class.html#processResponse,Method SmootLight.behaviors.ColorChangerBehavior.ColorChangerBehavior.processResponse()=SmootLight.behaviors.ColorChangerBehavior.ColorChangerBehavior-class.html#processResponse,Method SmootLight.behaviors.ColorShift.ColorShift.processResponse()=SmootLight.behaviors.ColorShift.ColorShift-class.html#processResponse,Method SmootLight.behaviors.ControllerOSC.ControllerOSC.processResponse()=SmootLight.behaviors.ControllerOSC.ControllerOSC-class.html#processResponse,Method SmootLight.behaviors.DebugBehavior.DebugBehavior.processResponse()=SmootLight.behaviors.DebugBehavior.DebugBehavior-class.html#processResponse,Method SmootLight.behaviors.DecayBehavior.DecayBehavior.processResponse()=SmootLight.behaviors.DecayBehavior.DecayBehavior-class.html#processResponse,Method SmootLight.behaviors.EchoBehavior.EchoBehavior.processResponse()=SmootLight.behaviors.EchoBehavior.EchoBehavior-class.html#processResponse,Method SmootLight.behaviors.Expand.Expand.processResponse()=SmootLight.behaviors.Expand.Expand-class.html#processResponse,Method SmootLight.behaviors.ExpandingColorZones.ExpandingColorZones.processResponse()=SmootLight.behaviors.ExpandingColorZones.ExpandingColorZones-class.html#processResponse,Method SmootLight.behaviors.Flasher.Flasher.processResponse()=SmootLight.behaviors.Flasher.Flasher-class.html#processResponse,Method SmootLight.behaviors.MITDoors.MITDoors.processResponse()=SmootLight.behaviors.MITDoors.MITDoors-class.html#processResponse,Method SmootLight.behaviors.MobileShakeBehavior.MobileShakeBehavior.processResponse()=SmootLight.behaviors.MobileShakeBehavior.MobileShakeBehavior-class.html#processResponse,Method SmootLight.behaviors.ModifyParam.ModifyParam.processResponse()=SmootLight.behaviors.ModifyParam.ModifyParam-class.html#processResponse,Method SmootLight.behaviors.ModulateColor.ColorShift.processResponse()=SmootLight.behaviors.ModulateColor.ColorShift-class.html#processResponse,Method SmootLight.behaviors.MoveBehavior.MoveBehavior.processResponse()=SmootLight.behaviors.MoveBehavior.MoveBehavior-class.html#processResponse,Method SmootLight.behaviors.MrmrSetColor.MrmrSetColor.processResponse()=SmootLight.behaviors.MrmrSetColor.MrmrSetColor-class.html#processResponse,Method SmootLight.behaviors.Oval.Oval.processResponse()=SmootLight.behaviors.Oval.Oval-class.html#processResponse,Method SmootLight.behaviors.RandomSetBrightColorBehavior.RandomSetBrightColorBehavior.processResponse()=SmootLight.behaviors.RandomSetBrightColorBehavior.RandomSetBrightColorBehavior-class.html#processResponse,Method SmootLight.behaviors.RandomWalk.RandomWalk.processResponse()=SmootLight.behaviors.RandomWalk.RandomWalk-class.html#processResponse,Method SmootLight.behaviors.RecursiveDecay.RecursiveDecay.processResponse()=SmootLight.behaviors.RecursiveDecay.RecursiveDecay-class.html#processResponse,Method SmootLight.behaviors.ResponseMover.ResponseMover.processResponse()=SmootLight.behaviors.ResponseMover.ResponseMover-class.html#processResponse,Method SmootLight.behaviors.RestrictLocation.RestrictLocation.processResponse()=SmootLight.behaviors.RestrictLocation.RestrictLocation-class.html#processResponse,Method SmootLight.behaviors.RiseFall.RiseFall.processResponse()=SmootLight.behaviors.RiseFall.RiseFall-class.html#processResponse,Method SmootLight.behaviors.RunningBehavior.RunningBehavior.processResponse()=SmootLight.behaviors.RunningBehavior.RunningBehavior-class.html#processResponse,Method SmootLight.behaviors.Sink.Sink.processResponse()=SmootLight.behaviors.Sink.Sink-class.html#processResponse,Method SmootLight.behaviors.SmootWind.SmootWind.processResponse()=SmootLight.behaviors.SmootWind.SmootWind-class.html#processResponse,Method SmootLight.behaviors.Square.Square.processResponse()=SmootLight.behaviors.Square.Square-class.html#processResponse,Method SmootLight.behaviors.SwitchBehavior.SwitchBehavior.processResponse()=SmootLight.behaviors.SwitchBehavior.SwitchBehavior-class.html#processResponse,Method SmootLight.behaviors.SynchTest.SynchTest.processResponse()=SmootLight.behaviors.SynchTest.SynchTest-class.html#processResponse,Method SmootLight.behaviors.TimeSwitch.TimeSwitch.processResponse()=SmootLight.behaviors.TimeSwitch.TimeSwitch-class.html#processResponse,Method SmootLight.behaviors.TimedDie.Timeout.processResponse()=SmootLight.behaviors.TimedDie.Timeout-class.html#processResponse,Method SmootLight.behaviors.Timeout.Timeout.processResponse()=SmootLight.behaviors.Timeout.Timeout-class.html#processResponse,Method SmootLight.behaviors.TouchOSC.TouchOSC.processResponse()=SmootLight.behaviors.TouchOSC.TouchOSC-class.html#processResponse,Method SmootLight.behaviors.VerticalBar.VerticalBar.processResponse()=SmootLight.behaviors.VerticalBar.VerticalBar-class.html#processResponse,Method SmootLight.behaviors.XYMove.XYMove.processResponse()=SmootLight.behaviors.XYMove.XYMove-class.html#processResponse,Method SmootLight.operationscore.Behavior.Behavior.processResponse()=SmootLight.operationscore.Behavior.Behavior-class.html#processResponse,Method SmootLight.pixelcore.Screen.Screen.processResponse()=SmootLight.pixelcore.Screen.Screen-class.html#processResponse"><a title="SmootLight.LightInstallation.LightInstallation.processResponse
+SmootLight.behaviors.AddPixelEvent.AddPixelEvent.processResponse
+SmootLight.behaviors.AllPixels.AllPixels.processResponse
+SmootLight.behaviors.AllPixelsLeft.AllPixelsLeft.processResponse
+SmootLight.behaviors.BehaviorChain.BehaviorChain.processResponse
+SmootLight.behaviors.Circle.Circle.processResponse
+SmootLight.behaviors.ColorChangerBehavior.ColorChangerBehavior.processResponse
+SmootLight.behaviors.ColorShift.ColorShift.processResponse
+SmootLight.behaviors.ControllerOSC.ControllerOSC.processResponse
+SmootLight.behaviors.DebugBehavior.DebugBehavior.processResponse
+SmootLight.behaviors.DecayBehavior.DecayBehavior.processResponse
+SmootLight.behaviors.EchoBehavior.EchoBehavior.processResponse
+SmootLight.behaviors.Expand.Expand.processResponse
+SmootLight.behaviors.ExpandingColorZones.ExpandingColorZones.processResponse
+SmootLight.behaviors.Flasher.Flasher.processResponse
+SmootLight.behaviors.MITDoors.MITDoors.processResponse
+SmootLight.behaviors.MobileShakeBehavior.MobileShakeBehavior.processResponse
+SmootLight.behaviors.ModifyParam.ModifyParam.processResponse
+SmootLight.behaviors.ModulateColor.ColorShift.processResponse
+SmootLight.behaviors.MoveBehavior.MoveBehavior.processResponse
+SmootLight.behaviors.MrmrSetColor.MrmrSetColor.processResponse
+SmootLight.behaviors.Oval.Oval.processResponse
+SmootLight.behaviors.RandomSetBrightColorBehavior.RandomSetBrightColorBehavior.processResponse
+SmootLight.behaviors.RandomWalk.RandomWalk.processResponse
+SmootLight.behaviors.RecursiveDecay.RecursiveDecay.processResponse
+SmootLight.behaviors.ResponseMover.ResponseMover.processResponse
+SmootLight.behaviors.RestrictLocation.RestrictLocation.processResponse
+SmootLight.behaviors.RiseFall.RiseFall.processResponse
+SmootLight.behaviors.RunningBehavior.RunningBehavior.processResponse
+SmootLight.behaviors.Sink.Sink.processResponse
+SmootLight.behaviors.SmootWind.SmootWind.processResponse
+SmootLight.behaviors.Square.Square.processResponse
+SmootLight.behaviors.SwitchBehavior.SwitchBehavior.processResponse
+SmootLight.behaviors.SynchTest.SynchTest.processResponse
+SmootLight.behaviors.TimeSwitch.TimeSwitch.processResponse
+SmootLight.behaviors.TimedDie.Timeout.processResponse
+SmootLight.behaviors.Timeout.Timeout.processResponse
+SmootLight.behaviors.TouchOSC.TouchOSC.processResponse
+SmootLight.behaviors.VerticalBar.VerticalBar.processResponse
+SmootLight.behaviors.XYMove.XYMove.processResponse
+SmootLight.operationscore.Behavior.Behavior.processResponse
+SmootLight.pixelcore.Screen.Screen.processResponse" class="py-name" href="#" onclick="return doclink('link-7', 'processResponse', 'link-7');">processResponse</a></tt><tt class="py-op">(</tt><tt class="py-name">sensorInputs</tt><tt class="py-op">,</tt> \ </tt>
+<a name="L44"></a><tt class="py-lineno">44</tt> <tt class="py-line"> <tt class="py-name">recursiveInputs</tt><tt class="py-op">)</tt> </tt>
+<a name="L45"></a><tt class="py-lineno">45</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-8" class="py-name"><a title="SmootLight.operationscore.Behavior.Behavior.addMapperToResponse" class="py-name" href="#" onclick="return doclink('link-8', 'addMapperToResponse', 'link-6');">addMapperToResponse</a></tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">outputs</tt><tt class="py-op">,</tt><tt class="py-name">recursions</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
+</div><a name="L46"></a><tt class="py-lineno">46</tt> <tt class="py-line"> </tt>
+<a name="Behavior.addInputs"></a><div id="Behavior.addInputs-def"><a name="L47"></a><tt class="py-lineno">47</tt> <a class="py-toggle" href="#" id="Behavior.addInputs-toggle" onclick="return toggle('Behavior.addInputs');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.operationscore.Behavior.Behavior-class.html#addInputs">addInputs</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">sensorInputs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+</div><div id="Behavior.addInputs-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Behavior.addInputs-expanded"><a name="L48"></a><tt class="py-lineno">48</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">sensorInputs</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+<a name="L49"></a><tt class="py-lineno">49</tt> <tt class="py-line"> <tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-9" class="py-name" targets="Method SmootLight.operationscore.Behavior.Behavior.addInput()=SmootLight.operationscore.Behavior.Behavior-class.html#addInput"><a title="SmootLight.operationscore.Behavior.Behavior.addInput" class="py-name" href="#" onclick="return doclink('link-9', 'addInput', 'link-9');">addInput</a></tt><tt class="py-op">(</tt><tt class="py-name">sensorInput</tt><tt class="py-op">)</tt> <tt class="py-keyword">for</tt> <tt class="py-name">sensorInput</tt> <tt class="py-keyword">in</tt> <tt class="py-name">sensorInputs</tt><tt class="py-op">]</tt> </tt>
+<a name="L50"></a><tt class="py-lineno">50</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
+<a name="L51"></a><tt class="py-lineno">51</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-10" class="py-name"><a title="SmootLight.operationscore.Behavior.Behavior.addInput" class="py-name" href="#" onclick="return doclink('link-10', 'addInput', 'link-9');">addInput</a></tt><tt class="py-op">(</tt><tt class="py-name">sensorInputs</tt><tt class="py-op">)</tt> </tt>
+</div><a name="L52"></a><tt class="py-lineno">52</tt> <tt class="py-line"> </tt>
+<a name="L53"></a><tt class="py-lineno">53</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
+<a name="Behavior.deepCopyPacket"></a><div id="Behavior.deepCopyPacket-def"><a name="L54"></a><tt class="py-lineno">54</tt> <a class="py-toggle" href="#" id="Behavior.deepCopyPacket-toggle" onclick="return toggle('Behavior.deepCopyPacket');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.operationscore.Behavior.Behavior-class.html#deepCopyPacket">deepCopyPacket</a><tt class="py-op">(</tt><tt class="py-param">datapacket</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+</div><div id="Behavior.deepCopyPacket-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Behavior.deepCopyPacket-expanded"><a name="L55"></a><tt class="py-lineno">55</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns a deep copy of a behavior data packet (a list of dicts) so that modifying the</tt> </tt>
+<a name="L56"></a><tt class="py-lineno">56</tt> <tt class="py-line"><tt class="py-docstring"> returned packet will not modify the incoming packet."""</tt> </tt>
+<a name="L57"></a><tt class="py-lineno">57</tt> <tt class="py-line"> <tt class="py-name">ret</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
+<a name="L58"></a><tt class="py-lineno">58</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">d</tt> <tt class="py-keyword">in</tt> <tt class="py-name">datapacket</tt><tt class="py-op">:</tt> </tt>
+<a name="L59"></a><tt class="py-lineno">59</tt> <tt class="py-line"> <tt class="py-name">d</tt> <tt class="py-op">=</tt> <tt class="py-name">dict</tt><tt class="py-op">(</tt><tt class="py-name">d</tt><tt class="py-op">)</tt> </tt>
+<a name="L60"></a><tt class="py-lineno">60</tt> <tt class="py-line"> <tt class="py-name">ret</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">d</tt><tt class="py-op">)</tt> </tt>
+<a name="L61"></a><tt class="py-lineno">61</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">ret</tt> </tt>
+</div><a name="L62"></a><tt class="py-lineno">62</tt> <tt class="py-line"> </tt>
+<a name="Behavior.getLastOutput"></a><div id="Behavior.getLastOutput-def"><a name="L63"></a><tt class="py-lineno">63</tt> <a class="py-toggle" href="#" id="Behavior.getLastOutput-toggle" onclick="return toggle('Behavior.getLastOutput');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.operationscore.Behavior.Behavior-class.html#getLastOutput">getLastOutput</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+</div><div id="Behavior.getLastOutput-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Behavior.getLastOutput-expanded"><a name="L64"></a><tt class="py-lineno">64</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">lastState</tt> </tt>
+</div><a name="L65"></a><tt class="py-lineno">65</tt> <tt class="py-line"> </tt>
+<a name="Behavior.setLastOutput"></a><div id="Behavior.setLastOutput-def"><a name="L66"></a><tt class="py-lineno">66</tt> <a class="py-toggle" href="#" id="Behavior.setLastOutput-toggle" onclick="return toggle('Behavior.setLastOutput');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.operationscore.Behavior.Behavior-class.html#setLastOutput">setLastOutput</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">output</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+</div><div id="Behavior.setLastOutput-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Behavior.setLastOutput-expanded"><a name="L67"></a><tt class="py-lineno">67</tt> <tt class="py-line"> <tt class="py-docstring">"""Override to modify state. For example: if you are using a behavior that does uses</tt> </tt>
+<a name="L68"></a><tt class="py-lineno">68</tt> <tt class="py-line"><tt class="py-docstring"> strings for location specification, you will want to override this to point to a single</tt> </tt>
+<a name="L69"></a><tt class="py-lineno">69</tt> <tt class="py-line"><tt class="py-docstring"> location. Make sure you keep lastState as a [] of {}. (List of dicts). Additonally,</tt> </tt>
+<a name="L70"></a><tt class="py-lineno">70</tt> <tt class="py-line"><tt class="py-docstring"> ensure that you call Behavior.deepCopyPacket on the packet before hand to avoid inadvertent</tt> </tt>
+<a name="L71"></a><tt class="py-lineno">71</tt> <tt class="py-line"><tt class="py-docstring"> down-stream modifications. Look at Square.py for an example of this."""</tt> </tt>
+<a name="L72"></a><tt class="py-lineno">72</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">lastState</tt> <tt class="py-op">=</tt> <tt id="link-11" class="py-name" targets="Module SmootLight.operationscore.Behavior=SmootLight.operationscore.Behavior-module.html,Class SmootLight.operationscore.Behavior.Behavior=SmootLight.operationscore.Behavior.Behavior-class.html"><a title="SmootLight.operationscore.Behavior
+SmootLight.operationscore.Behavior.Behavior" class="py-name" href="#" onclick="return doclink('link-11', 'Behavior', 'link-11');">Behavior</a></tt><tt class="py-op">.</tt><tt id="link-12" class="py-name" targets="Static Method SmootLight.operationscore.Behavior.Behavior.deepCopyPacket()=SmootLight.operationscore.Behavior.Behavior-class.html#deepCopyPacket"><a title="SmootLight.operationscore.Behavior.Behavior.deepCopyPacket" class="py-name" href="#" onclick="return doclink('link-12', 'deepCopyPacket', 'link-12');">deepCopyPacket</a></tt><tt class="py-op">(</tt><tt class="py-name">output</tt><tt class="py-op">)</tt> </tt>
+</div><a name="L73"></a><tt class="py-lineno">73</tt> <tt class="py-line"> </tt>
+<a name="Behavior.addMapperToResponse"></a><div id="Behavior.addMapperToResponse-def"><a name="L74"></a><tt class="py-lineno">74</tt> <a class="py-toggle" href="#" id="Behavior.addMapperToResponse-toggle" onclick="return toggle('Behavior.addMapperToResponse');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.operationscore.Behavior.Behavior-class.html#addMapperToResponse">addMapperToResponse</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">responses</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+</div><div id="Behavior.addMapperToResponse-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Behavior.addMapperToResponse-expanded"><a name="L75"></a><tt class="py-lineno">75</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'Mapper'</tt><tt class="py-op">]</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
+<a name="L76"></a><tt class="py-lineno">76</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">responses</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">tuple</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+<a name="L77"></a><tt class="py-lineno">77</tt> <tt class="py-line"> <tt class="py-op">(</tt><tt class="py-name">out</tt><tt class="py-op">,</tt> <tt class="py-name">recurs</tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt class="py-name">responses</tt> </tt>
+<a name="L78"></a><tt class="py-lineno">78</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name"><a title="SmootLight.operationscore.Behavior.Behavior.addMapperToResponse" class="py-name" href="#" onclick="return doclink('link-13', 'addMapperToResponse', 'link-6');">addMapperToResponse</a></tt><tt class="py-op">(</tt><tt class="py-name">out</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="SmootLight.operationscore.Behavior.Behavior.addMapperToResponse" class="py-name" href="#" onclick="return doclink('link-14', 'addMapperToResponse', 'link-6');">addMapperToResponse</a></tt><tt class="py-op">(</tt><tt class="py-name">recurs</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
+<a name="L79"></a><tt class="py-lineno">79</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">responses</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
+<a name="L80"></a><tt class="py-lineno">80</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">r</tt> <tt class="py-keyword">in</tt> <tt class="py-name">responses</tt><tt class="py-op">:</tt> </tt>
+<a name="L81"></a><tt class="py-lineno">81</tt> <tt class="py-line"> <tt class="py-name">r</tt><tt class="py-op">[</tt><tt class="py-string">'Mapper'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'Mapper'</tt><tt class="py-op">]</tt> </tt>
+<a name="L82"></a><tt class="py-lineno">82</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">responses</tt> </tt>
+<a name="L83"></a><tt class="py-lineno">83</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">responses</tt> </tt>
+</div><a name="L84"></a><tt class="py-lineno">84</tt> <tt class="py-line"> </tt>
+<a name="Behavior.timeStep"></a><div id="Behavior.timeStep-def"><a name="L85"></a><tt class="py-lineno">85</tt> <a class="py-toggle" href="#" id="Behavior.timeStep-toggle" onclick="return toggle('Behavior.timeStep');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="SmootLight.operationscore.Behavior.Behavior-class.html#timeStep">timeStep</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-comment">#TODO: type checking. clean this up</tt> </tt>
+</div><a name="L86"></a><tt class="py-lineno">86</tt> <tt class="py-line"> <tt class="py-op">(</tt><tt class="py-name">outputs</tt><tt class="py-op">,</tt> <tt class="py-name">recursions</tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-15" class="py-name"><a title="SmootLight.LightInstallation.LightInstallation.processResponse
+SmootLight.behaviors.AddPixelEvent.AddPixelEvent.processResponse
+SmootLight.behaviors.AllPixels.AllPixels.processResponse
+SmootLight.behaviors.AllPixelsLeft.AllPixelsLeft.processResponse
+SmootLight.behaviors.BehaviorChain.BehaviorChain.processResponse
+SmootLight.behaviors.Circle.Circle.processResponse
+SmootLight.behaviors.ColorChangerBehavior.ColorChangerBehavior.processResponse
+SmootLight.behaviors.ColorShift.ColorShift.processResponse
+SmootLight.behaviors.ControllerOSC.ControllerOSC.processResponse
+SmootLight.behaviors.DebugBehavior.DebugBehavior.processResponse
+SmootLight.behaviors.DecayBehavior.DecayBehavior.processResponse
+SmootLight.behaviors.EchoBehavior.EchoBehavior.processResponse
+SmootLight.behaviors.Expand.Expand.processResponse
+SmootLight.behaviors.ExpandingColorZones.ExpandingColorZones.processResponse
+SmootLight.behaviors.Flasher.Flasher.processResponse
+SmootLight.behaviors.MITDoors.MITDoors.processResponse
+SmootLight.behaviors.MobileShakeBehavior.MobileShakeBehavior.processResponse
+SmootLight.behaviors.ModifyParam.ModifyParam.processResponse
+SmootLight.behaviors.ModulateColor.ColorShift.processResponse
+SmootLight.behaviors.MoveBehavior.MoveBehavior.processResponse
+SmootLight.behaviors.MrmrSetColor.MrmrSetColor.processResponse
+SmootLight.behaviors.Oval.Oval.processResponse
+SmootLight.behaviors.RandomSetBrightColorBehavior.RandomSetBrightColorBehavior.processResponse
+SmootLight.behaviors.RandomWalk.RandomWalk.processResponse
+SmootLight.behaviors.RecursiveDecay.RecursiveDecay.processResponse
+SmootLight.behaviors.ResponseMover.ResponseMover.processResponse
+SmootLight.behaviors.RestrictLocation.RestrictLocation.processResponse
+SmootLight.behaviors.RiseFall.RiseFall.processResponse
+SmootLight.behaviors.RunningBehavior.RunningBehavior.processResponse
+SmootLight.behaviors.Sink.Sink.processResponse
+SmootLight.behaviors.SmootWind.SmootWind.processResponse
+SmootLight.behaviors.Square.Square.processResponse
+SmootLight.behaviors.SwitchBehavior.SwitchBehavior.processResponse
+SmootLight.behaviors.SynchTest.SynchTest.processResponse
+SmootLight.behaviors.TimeSwitch.TimeSwitch.processResponse
+SmootLight.behaviors.TimedDie.Timeout.processResponse
+SmootLight.behaviors.Timeout.Timeout.processResponse
+SmootLight.behaviors.TouchOSC.TouchOSC.processResponse
+SmootLight.behaviors.VerticalBar.VerticalBar.processResponse
+SmootLight.behaviors.XYMove.XYMove.processResponse
+SmootLight.operationscore.Behavior.Behavior.processResponse
+SmootLight.pixelcore.Screen.Screen.processResponse" class="py-name" href="#" onclick="return doclink('link-15', 'processResponse', 'link-7');">processResponse</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sensorResponseQueue</tt><tt class="py-op">,</tt> \ </tt>
+<a name="L87"></a><tt class="py-lineno">87</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">recursiveResponseQueue</tt><tt class="py-op">)</tt> </tt>
+<a name="L88"></a><tt class="py-lineno">88</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sensorResponseQueue</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
+<a name="L89"></a><tt class="py-lineno">89</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">recursiveResponseQueue</tt> <tt class="py-op">=</tt> <tt class="py-name">recursions</tt> </tt>
+<a name="L90"></a><tt class="py-lineno">90</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-16" class="py-name" targets="Method SmootLight.behaviors.Circle.Circle.setLastOutput()=SmootLight.behaviors.Circle.Circle-class.html#setLastOutput,Method SmootLight.behaviors.Oval.Oval.setLastOutput()=SmootLight.behaviors.Oval.Oval-class.html#setLastOutput,Method SmootLight.behaviors.Square.Square.setLastOutput()=SmootLight.behaviors.Square.Square-class.html#setLastOutput,Method SmootLight.operationscore.Behavior.Behavior.setLastOutput()=SmootLight.operationscore.Behavior.Behavior-class.html#setLastOutput"><a title="SmootLight.behaviors.Circle.Circle.setLastOutput
+SmootLight.behaviors.Oval.Oval.setLastOutput
+SmootLight.behaviors.Square.Square.setLastOutput
+SmootLight.operationscore.Behavior.Behavior.setLastOutput" class="py-name" href="#" onclick="return doclink('link-16', 'setLastOutput', 'link-16');">setLastOutput</a></tt><tt class="py-op">(</tt><tt class="py-name">outputs</tt><tt class="py-op">)</tt> </tt>
+<a name="L91"></a><tt class="py-lineno">91</tt> <tt class="py-line"> <tt id="link-17" class="py-name"><a title="SmootLight.behaviors.AllPixels.main_log
+SmootLight.behaviors.AllPixelsLeft.main_log
+SmootLight.behaviors.Circle.main_log
+SmootLight.behaviors.ColorChangerBehavior.main_log
+SmootLight.behaviors.ColorShift.main_log
+SmootLight.behaviors.DecayBehavior.main_log
+SmootLight.behaviors.EchoBehavior.main_log
+SmootLight.behaviors.Expand.main_log
+SmootLight.behaviors.Flasher.main_log
+SmootLight.behaviors.MITDoors.main_log
+SmootLight.behaviors.MobileShakeBehavior.main_log
+SmootLight.behaviors.ModifyParam.main_log
+SmootLight.behaviors.ModulateColor.main_log
+SmootLight.behaviors.MoveBehavior.main_log
+SmootLight.behaviors.Oval.main_log
+SmootLight.behaviors.RandomSetBrightColorBehavior.main_log
+SmootLight.behaviors.RandomWalk.main_log
+SmootLight.behaviors.RecursiveDecay.main_log
+SmootLight.behaviors.ResponseMover.main_log
+SmootLight.behaviors.RestrictLocation.main_log
+SmootLight.behaviors.RiseFall.main_log
+SmootLight.behaviors.RunningBehavior.main_log
+SmootLight.behaviors.Sink.main_log
+SmootLight.behaviors.SmootWind.main_log
+SmootLight.behaviors.Square.main_log
+SmootLight.behaviors.SwitchBehavior.main_log
+SmootLight.behaviors.SynchTest.main_log
+SmootLight.behaviors.TimedDie.main_log
+SmootLight.behaviors.Timeout.main_log
+SmootLight.behaviors.VerticalBar.main_log
+SmootLight.behaviors.XYMove.main_log
+SmootLight.inputs.ContinuousCenterInput.main_log
+SmootLight.inputs.ContinuousLocationInput.main_log
+SmootLight.inputs.HTMLInput.main_log
+SmootLight.inputs.PygameInput.main_log
+SmootLight.inputs.RandomLocs.main_log
+SmootLight.inputs.UDPInput.main_log
+SmootLight.logger.Logger.main_log
+SmootLight.pixelcore.PixelStrip.main_log
+SmootLight.pixelmappers.C5SignMapper.main_log
+SmootLight.pixelmappers.GaussianMapper.main_log
+SmootLight.pixelmappers.SimpleMapper.main_log
+SmootLight.pixelmappers.WindGaussianMapper.main_log
+SmootLight.tests.TestBQS'.main_log" class="py-name" href="#" onclick="return doclink('link-17', 'main_log', 'link-3');">main_log</a></tt><tt class="py-op">.</tt><tt class="py-name">debug</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'Id'</tt><tt class="py-op">]</tt> <tt class="py-op">+</tt> <tt class="py-string">' Ouputs '</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">outputs</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
+<a name="L92"></a><tt class="py-lineno">92</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-18" class="py-name"><a title="SmootLight.operationscore.Behavior.Behavior.addMapperToResponse" class="py-name" href="#" onclick="return doclink('link-18', 'addMapperToResponse', 'link-6');">addMapperToResponse</a></tt><tt class="py-op">(</tt><tt class="py-name">outputs</tt><tt class="py-op">)</tt> </tt>
+</div></div><a name="L93"></a><tt class="py-lineno">93</tt> <tt class="py-line"> </tt><script type="text/javascript">
+<!--
+expandto(location.href);
+// -->
+</script>
+</pre>
+<br />
+<!-- ==================== NAVIGATION BAR ==================== -->
+<table class="navbar" border="0" width="100%" cellpadding="0"
+ bgcolor="#a0c0ff" cellspacing="0">
+ <tr valign="middle">
+ <!-- Home link -->
+ <th>&nbsp;&nbsp;&nbsp;<a
+ href="SmootLight-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
+
+ <!-- Tree link -->
+ <th>&nbsp;&nbsp;&nbsp;<a
+ href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
+
+ <!-- Index link -->
+ <th>&nbsp;&nbsp;&nbsp;<a
+ href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
+
+ <!-- Help link -->
+ <th>&nbsp;&nbsp;&nbsp;<a
+ href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
+
+ <th class="navbar" width="100%"></th>
+ </tr>
+</table>
+<table border="0" cellpadding="0" cellspacing="0" width="100%%">
+ <tr>
+ <td align="left" class="footer">
+ Generated by Epydoc 3.0.1 on Fri Feb 18 16:55:26 2011
+ </td>
+ <td align="right" class="footer">
+ <a target="mainFrame" href="http://epydoc.sourceforge.net"
+ >http://epydoc.sourceforge.net</a>
+ </td>
+ </tr>
+</table>
+
+<script type="text/javascript">
+ <!--
+ // Private objects are initially displayed (because if
+ // javascript is turned off then we want them to be
+ // visible); but by default, we want to hide them. So hide
+ // them unless we have a cookie that says to show them.
+ checkCookie();
+ // -->
+</script>
+</body>
+</html>