Package SmootLight :: Package behaviors :: Module BehaviorChain :: Class BehaviorChain
[hide private]
[frames] | no frames]

Class BehaviorChain

source code

                                    object --+        
                                             |        
operationscore.SmootCoreObject.SmootCoreObject --+    
                                                 |    
                  operationscore.Behavior.Behavior --+
                                                     |
                                                    BehaviorChain

BehaviorChain is a class which chains together multiple behavior.  BehaviorChain is in itself a
behavior, and behaves and can be used accordingly.  BehaviorChain also supports recursive hooks to
be set on its constituent behaviors.  ChainedBehaviors should be specified in <Args> as follows:

<ChainedBehaviors>
    <Id>behavior1Id</Id>
    <Id>behavior2Id</Id>
</ChainedBehaviors>

Behaviors may also be appended programmatically via the appendBehavior method.

Recursive hooks should be specified with Python dict syntax as follows:

<RecursiveHooks>{'behavior1Id':'hookid'}</RecursiveHooks>

Behavior Chain manages all recurrences that its constituents propogate.  At this point, it does not
support recurrences in its hooks.

Instance Methods [hide private]
 
behaviorInit(self) source code
 
processResponse(self, sensorInputs, recursiveInputs) source code
 
appendBehavior(behavior) source code

Inherited from operationscore.Behavior.Behavior: addInput, addInputs, addMapper, addMapperToResponse, getLastOutput, immediateProcessInput, init, setLastOutput, timeStep

Inherited from operationscore.SmootCoreObject.SmootCoreObject: __contains__, __getitem__, __getiter__, __init__, __setitem__, acquireLock, addDieListener, className, die, releaseLock, removeDieListener, validateArgDict, validateArgs

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from operationscore.Behavior.Behavior: deepCopyPacket

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

behaviorInit(self)

source code 
Overrides: operationscore.Behavior.Behavior.behaviorInit

processResponse(self, sensorInputs, recursiveInputs)

source code 
Overrides: operationscore.Behavior.Behavior.processResponse