Package cells :: Module synapse :: Class ChangeSynapse
[hide private]
[frames] | no frames]

Class ChangeSynapse
source code

object --+        
         |        
 cell.Cell --+    
             |    
       Synapse --+
                 |
                ChangeSynapse

A very simple filter. Only returns the new value when it's changed by the passed delta

Instance Methods [hide private]
  __init__(self, owner, name=None, read=None, delta=None, **kwargs)
Initialize the synapse Cell, if neccessary.
  synapse_rule(self, owner, oldvalue)

Inherited from Synapse: __call__, rule, run

Inherited from cell.Cell: add_called_by, add_calls, called_by_list, calls_list, changed, getvalue, propogate, propogation_list, remove_called_bys, remove_cb, reset_calls, set, updatecell

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Static Methods [hide private]

Inherited from Synapse: __new__


Class Variables [hide private]

Inherited from Synapse: initialized

Inherited from object: __class__


Instance Variables [hide private]

Inherited from cell.Cell: called_by, calls, synapse_space


Method Details [hide private]

__init__(self, owner, name=None, read=None, delta=None, **kwargs)
(Constructor)

source code 
Initialize the synapse Cell, if neccessary.
Overrides: Synapse.__init__
(inherited documentation)

synapse_rule(self, owner, oldvalue)

source code