}
    void init() {        credit = new HashMap();        iteration = new HashMap();        queue_size = new HashMap();        num = NodeEnumerator.getNumberOfNodes();        //System.out.println("Number of nodes: "+num);        for (int y = 0; y < num; y++) {            SIROperator oper = NodeEnumerator.getOperator(y);            credit.put(oper, new Integer(-1));            iteration.put(oper, new Integer(0));            Vector out = RegisterStreams.getNodeOutStreams(oper);            for (int z = 0; z < out.size(); z++) {                NetStream ns = (NetStream)out.get(z);                SIROperator dst = NodeEnumerator.getOperator(ns.getDest());                queue_size.put(makeVector(oper, dst), new Integer(0));            }        }        ph = sched.getNumberOfPhases();        //System.out.println("Number of phases: "+ph);        for (int y = 0; y < ph; y++) {            HashSet p = sched.getAllOperatorsInPhase(y);            //System.out.println("phase "+y+" has size: "+p.size());            Iterator it = p.iterator();            while (it.hasNext()) {                SIROperator oper = (SIROperator)it.next();                if (oper instanceof SIRFilter) {                    SIRFilter src = (SIRFilter)oper;                    HashSet cons = LatencyConstraints.getOutgoingConstraints((SIRFilter)oper);                    Iterator ci = cons.iterator();                    while (ci.hasNext()) {                        LatencyConstraint c = (LatencyConstraint)ci.next();                        SIRFilter dst = (SIRFilter)c.getReceiver();                        boolean down = LatencyConstraints.isMessageDirectionDownstream(src, dst);                        int init_c = c.getSourceInit();                        //System.out.println("Constraint from: "+src+" to: "+dst+(down?" DOWN":" UP")+" init-credit: "+init_c);                        if (down) {                            credit.put(dst, new Integer(0));                        } else {                            credit.put(dst, new Integer(init_c));                        }                    }                }            }        }        } 