itemsReceived = (prev.getPrimePumpMult() * prev.getFilter().getPushInt()) * (out.getWeight(in) / out.totalWeights());
itemsReceived = (int)((prev.getPrimePumpMult() * prev.getFilter().getPushInt()) * ((double)out.getWeight(in) / out.totalWeights()));
    public static int primePumpBufferSize(InputTraceNode in, 					  OutputTraceNode out)     {	//items received into buffer	int itemsReceived;	//calculate the items the output trace sends, because	//the downstream filter may not receive them all	FilterTraceNode prev = (FilterTraceNode)out.getPrevious();	itemsReceived = (prev.getPrimePumpMult() * prev.getFilter().getPushInt()) *	    (out.getWeight(in) / out.totalWeights());	return itemsReceived * getTypeSize(prev.getFilter().getOutputType());    }