Signal s = signalSelfQueue.remove(0);
Signal s = (Signal)signalSelfQueue.remove(0);
    public void propogateNextSignal() throws LemRuntimeException    {	while (true) {		if (signalSelfQueue.size() > 0) {			Signal s = signalSelfQueue.remove(0);		        for( Iterator i = instances.iterator(); i.hasNext(); ) {		        	Instance in = (Instance)i.next();				in.addSignalSelf(s);			}		} else if (signalQueue.size() > 0) {			Signal s = signalQueue.remove(0);		        for( Iterator i = instances.iterator(); i.hasNext(); ) {		        	Instance in = (Instance)i.next();				in.addSignal(s);			}		} else {			/* Wait for next signal */			/* @todo: if we have multiple threads here, we still			 * only want to propogate only one signal to the			 * instances.			 */			continue;		}		break;	}    }