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

Class RestrictLocation

source code

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

RestrictLocation is a Behavior which does an action -- A ModifyParam, actually, when a certain location based condition is met. It takes arguments as follows:

<Action> -- Operation to perform, using ModifyParam syntax. Use {val} to reference the variable specified by ParamName. <ParamName> -- the name of the parameter to modify. <LocationRestriction> -- either a tuple of (xmin,ymin,xmax,ymax) or a python-correct conditional. Use {x} and {y} to reference x and y. Use &lt; and &gt; to get < and > in XML. EG: <LocationRestriction>{x}&lt;0 or {x}&gt;800</LocationRestriction>

Instance Methods [hide private]
 
behaviorInit(self) source code
 
processResponse(self, sensorInputs, recursiveInputs) 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