// 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:   Processor.java

package drm.signal;

import java.util.Vector;

// Referenced classes of package drm.signal:
//			Simulation

public class Processor
{

	public Processor()
	{
	}

	public Vector proccess(Vector sim, long tillStep)
	{
		Vector out = new Vector();
		while(sim.size() > 0) 
		{
			Simulation s = (Simulation)sim.remove(0);
			if(s.getStep() < tillStep)
			{
				Simulation st[] = s.simulate();
				for(int i = 0; i < st.length; i++)
					sim.add(st[i]);

			} else
			{
				out.add(s);
			}
		}
		return out;
	}
}
