Package cells :: Module cell :: Class InputCell
[hide private]
[frames] | no frames]

Class InputCell
source code

object --+    
         |    
      Cell --+
             |
            InputCell
Known Subclasses:
DictCell, ListCell

A cell whose value can be set

Instance Methods [hide private]
  __init__(self, owner, name=None, rule=None, value=None, unchanged_if=None)
Initializes an InputCell object.
  run(self)
You may not run() an InputCell

Inherited from 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__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Variables [hide private]

Inherited from object: __class__


Instance Variables [hide private]

Inherited from Cell: called_by, calls, synapse_space


Method Details [hide private]

__init__(self, owner, name=None, rule=None, value=None, unchanged_if=None)
(Constructor)

source code 
Initializes an InputCell object. You may not pass a rule.
Parameters:
  • name - This cell's name. When using a Cell with Models, this parameter is assigned automatically.
  • value - Define a value for this cell. You must only define one of rule or value. Lacking celltype, this creates an InputCell.
  • unchanged_if - Sets a function to determine if a cell's value has changed. The signature for the passed function is f(old, new) -> bool.
Returns:
None

Raises:
  • InputCellRunError - If rule is passed as a parameter
Overrides: Cell.__init__

run(self)

source code 
You may not run() an InputCell
Returns:
None

Raises:
  • InputCellRunError - Always raises
Overrides: Cell.run