Examples of DistributedSDFReceiver


Examples of ptolemy.distributed.domains.sdf.kernel.DistributedSDFReceiver

     @return A DistributedSDFReceiver with the next available ID in the
     *  listOfIds.
     */
    public Receiver newReceiver() {
        Integer ID;
        DistributedSDFReceiver receiver;

        if (!listOfIds.isEmpty()) {
            ID = (Integer) listOfIds.getFirst();
            listOfIds.removeFirst();
            receiver = new DistributedSDFReceiver(ID);
            idsReceiversMap.put(ID, receiver);

            if (VERBOSE) {
                System.out.println("DistributedDirector.Created receiver: "
                        + ID);
            }
        } else {
            ID = Integer.valueOf(lastId);
            lastId += 1;
            receiver = new DistributedSDFReceiver(ID);
        }

        return receiver;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.