nodeUI = new UIEnsemble((Ensemble) node);
}
} else if (node instanceof Neuron) {
nodeUI = new UINeuron((Neuron) node);
} else if (node instanceof FunctionInput) {
nodeUI = new UIFunctionInput((FunctionInput) node);
} else {
nodeUI = new UIGenericNode(node);
}
return nodeUI;
}