itemsSent = (next.getSteadyMult() * next.getFilter().getPopInt()) * (in.getWeight(out) / in.totalWeights());
itemsSent = (int)((next.getSteadyMult() * next.getFilter().getPopInt()) * ((double)in.getWeight(out) / in.totalWeights()));
    public static int steadyBufferSize(InputTraceNode in,				       OutputTraceNode out)     {	int itemsReceived, itemsSent;	//calculate the items the input trace receives	FilterTraceNode next = (FilterTraceNode)in.getNext();	itemsSent = (next.getSteadyMult() * next.getFilter().getPopInt()) *	    (in.getWeight(out) / in.totalWeights());		//calculate the items the output trace sends	FilterTraceNode prev = (FilterTraceNode)out.getPrevious();	itemsReceived = (prev.getSteadyMult() * prev.getFilter().getPushInt()) *	    (out.getWeight(in) / out.totalWeights());	//see if they are different	if (itemsSent != itemsReceived)	    Utils.fail("Calculating steady state: items received != items send on buffer");		return itemsSent * getTypeSize(next.getFilter().getInputType());    }