Node Base Classes

class mh_en_exec.nodes.NodeBase(id_, name='Node Base')

The NodeBase class is the base class for the nodes To create external node, need to inherit this class and implement perform function

perform(*args, **kwargs) tuple
This function is called when a node is executed on the Machine Heads side.
Input port values will be set as arguments of this function.
Output port values need to be set as a return values of this function.
Return type:
In case of data node: tuple[{output port values}]
In case of action node: bool, tuple[{output port values}]
first value of the action node return values is a bool value. If `True` `out_on_success` port will be called, if `False` `out_on_failure` port will be called
Raises

NotImplementedError – In case of function is not overrode

class mh_en_exec.nodes.ActionNodeBase(id_, name='Node Base')

The ActionNodeBase class is the base class for the action nodes To create external action node, need to inherit this class and implement perform function

perform(*args, **kwargs) tuple
This function is called when a node is executed on the Machine Heads side.
Input port values will be set as arguments of this function.
Output port values need to be set as a return values of this function.
Return type:
In case of data node: tuple[{output port values}]
In case of action node: bool, tuple[{output port values}]
first value of the action node return values is a bool value. If `True` `out_on_success` port will be called, if `False` `out_on_failure` port will be called
Raises

NotImplementedError – In case of function is not overrode