Package mdp :: Package hinet :: Class HiNetTranslator
[hide private]
[frames] | no frames]

Class HiNetTranslator


Generic translation class for HiNet flow.

The dummy implementation in this base class turns the HiNet structure
into nested lists of the basic nodes.

Instance Methods [hide private]
 
__init__(self)
Initialize the internal variables.
 
_translate_clonelayer(self, layer)
Translate a CloneLayer and return the translation.
 
_translate_flow(self, flow)
Translate the flow and return the translation.
 
_translate_flownode(self, flownode)
Translate a node containing a flow and return the translation.
 
_translate_layer(self, layer)
Translate a layer and return the translation.
 
_translate_node(self, node)
Translate a node and return the translation.
 
_translate_sameinputlayer(self, layer)
Translate a SameInputLayer and return the translation.
 
_translate_standard_node(self, node)
Translate a node and return the translation.

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

 
Initialize the internal variables.

Overrides: object.__init__

_translate_clonelayer(self, layer)

 
Translate a CloneLayer and return the translation.

_translate_flow(self, flow)

 
Translate the flow and return the translation.

_translate_flownode(self, flownode)

 
Translate a node containing a flow and return the translation.

The internal nodes are translated recursively.

Note that this method is used for translation whenever the node has
a flow attribute. This flow attribute is then used for the iteration,
so the node itself does not have to be an iterable.

_translate_layer(self, layer)

 
Translate a layer and return the translation.

All the nodes in the layer are translated.

_translate_node(self, node)

 
Translate a node and return the translation.

Depending on the type of the node this can be delegated to more
specific methods.

_translate_sameinputlayer(self, layer)

 
Translate a SameInputLayer and return the translation.

_translate_standard_node(self, node)

 
Translate a node and return the translation.

This method is used when no specialized translation (like for FlowNodes
or Layers) is required.