示例#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"))
示例#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()
示例#3
0
 def __init__(cls, name, bases, clsdict):
     """
     """
     super(_NodeParamTypeMeta, cls).__init__(name, bases, clsdict)        
     NodeParamTypeRegistry.register(cls.__name__, cls)
示例#4
0
def get_param_type(name):
    """    
    """
    return NodeParamTypeRegistry.get(name)