(int) ((double) prev.initItemsPushed() * edge.getSrc().ratio(edge));
(int) (((double) prev.initItemsPushed()) * edge.getSrc().ratio(edge));
    private void setMultiplicitiesSplit(Trace[] traces) {        for (int i = 0; i < traces.length; i++) {            Edge edge = traces[i].getHead().getSingleEdge();                 //the last filter of the prev (original) trace             FilterContent prev =                edge.getSrc().getPrevFilter().getFilter();                        //calculate the number of items the original trace sends to this            //trace in the init stage            int initItems =                 (int) ((double) prev.initItemsPushed() * edge.getSrc().ratio(edge));            traces[i].getHead().getNextFilter().getFilter().setInitMult(initItems);                        //calc the number of steady items            int steadyItems = (int) ((prev.getSteadyMult() * prev.getPushInt()) * ((double) edge.getSrc()                        .getWeight(edge) / edge.getSrc().totalWeights()));            traces[i].getHead().getNextFilter().getFilter().setSteadyMult(steadyItems);        }            }