Package mdp :: Class ExtensionNode
[hide private]
[frames] | no frames]

Class ExtensionNode


Base class for extensions nodes.

A new extension node class should override the _extension_name.
The concrete node implementations are then derived from this extension
node class.

Important note:
To call a method from a parent class you have two options.

- use super, but with the normal node class, e.g.:
    super(mdp.nodes.SFA2Node, self).method()
  Here SFA2Node was given instead of the extension node class for the
  SFA2Node.
  If the extensions node class is used directly (without the extension
  mechanism) this may lead to problems. In this case you have to be
  careful about the inheritance order and the effect on the MRO.
  
- call it explicitly using the im_func attribute:
    parent_class.method.im_func(self)
    
- To call the original method in the same class use the
  'ext_original_method' attribute of the injected method.

Nested Classes [hide private]
  __metaclass__
This is the metaclass for node extension superclasses.
Instance Methods [hide private]

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

Class Variables [hide private]
  extension_name = None
Properties [hide private]

Inherited from object: __class__

Class Variable Details [hide private]

extension_name

Value:
None