assert (itemsSent == itemsReceived) : "Calculating steady state: items received != items send on buffer: " + src + " -> " + dest;
assert (itemsSent == itemsReceived) : "Calculating init stage: items received != items send on buffer: " + src + " (" + itemsSent + ") -> (" + itemsReceived + ") "+ dest;
    public int initItems() {        int itemsReceived, itemsSent;        // calculate the items the input trace receives        FilterInfo next = FilterInfo.getFilterInfo((FilterTraceNode) dest                                                   .getNext());        itemsSent = (int) ((double) next.initItemsReceived() * dest.ratio(this));        // calculate the items the output trace sends        FilterInfo prev = FilterInfo.getFilterInfo((FilterTraceNode) src                                                   .getPrevious());        itemsReceived = (int) ((double) prev.initItemsSent() * src.ratio(this));        /*         * System.out.println(out); for (int i = 0; i < out.getWeights().length;         * i++) { System.out.println(" ---- Weight = " + out.getWeights()[i]);         * for (int j = 0; j < out.getDests()[i].length; j++)         * System.out.println(out.getDests()[i][j] + " " +         * out.getDests()[i][j].hashCode()); System.out.println(" ---- "); }         * //System.out.println(out.getWeight(edge)+ " / " +         * out.totalWeights());         * //System.out.println(((double)out.getWeight(edge) /         * out.totalWeights()));         *          * System.out.println(in); //System.out.println(in.getWeights().length + " " +         * in.getWeights()[0]); System.out.println("-------"); for (int i = 0; i <         * in.getWeights().length; i++) { System.out.println(in.getSources()[i] + " " +         * in.getWeights()[i] + " " + in.getSources()[i].hashCode()); }         * System.out.println("-------");         */        // see if they are different        assert (itemsSent == itemsReceived) : "Calculating steady state: items received != items send on buffer: "            + src + " -> " + dest;        return itemsSent;    }