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