Example #1
0
 def _init_params(self):
     """
     """
     self.add_input_param("switch_index", NodeParamTypeRegistry.get("IntegerType"),
                             default_value=0)
     self.add_input_param("index_0", NodeParamTypeRegistry.get("VariantType"))
     self.add_output_param("chosen_value", NodeParamTypeRegistry.get("VariantType"))
Example #2
0
 def __init_params(self):
     """
     Initialize node parameters.
     """
     if self._has_default_params:
         self.add_input_param("netin", NodeParamTypeRegistry.get("VariantType"))
         self.add_output_param("netout", NodeParamTypeRegistry.get("VariantType"))
     self._init_params()
Example #3
0
 def __init__(cls, name, bases, clsdict):
     """
     """
     super(_NodeParamTypeMeta, cls).__init__(name, bases, clsdict)        
     NodeParamTypeRegistry.register(cls.__name__, cls)
Example #4
0
def get_param_type(name):
    """    
    """
    return NodeParamTypeRegistry.get(name)