// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) fieldsfirst 
// Source File Name:   NeuroNetSingleLayer.java

package drm.signal.neuro;

import drm.signal.*;
import java.util.Iterator;
import java.util.Vector;

// Referenced classes of package drm.signal.neuro:
//			AbstractNeuroContainer

public class NeuroNetSingleLayer extends AbstractNeuroContainer
{

	public NeuroNetSingleLayer(int inputCount, int outputCount, Class neuronType)
		throws IllegalAccessException, InstantiationException
	{
		Vector b1 = new Vector(inputCount);
		Vector b2 = new Vector(outputCount);
		for(int i = 0; i < inputCount; i++)
		{
			AbstractBox btmp = new NullBox();
			neurons.add(btmp);
			b1.add(btmp);
			Connector cnt = new Connector(null, btmp);
			in.add(cnt);
		}

		for(int i = 0; i < outputCount; i++)
		{
			AbstractBox btmp = (AbstractBox)neuronType.newInstance();
			neurons.add(btmp);
			b2.add(btmp);
			Connector cnt = new Connector(btmp, null);
			out.add(cnt);
		}

		for(Iterator it1 = b1.iterator(); it1.hasNext();)
		{
			AbstractBox box1 = (AbstractBox)it1.next();
			AbstractBox box2;
			for(Iterator it2 = b2.iterator(); it2.hasNext(); new Connector(box1, box2))
				box2 = (AbstractBox)it2.next();

		}

	}

	protected void update()
	{
	}
}
