Connection connection = new Connection(fromNeuron, toNeuron, weightVal);
toNeuron.addInputConnection(connection);
}
public static void createConnection(Neuron fromNeuron, Neuron toNeuron, double weightVal, int delay) {
DelayedConnection connection = new DelayedConnection(fromNeuron, toNeuron, weightVal, delay);
toNeuron.addInputConnection(connection);
}