Examples of SDFReceiver


Examples of ptolemy.domains.sdf.kernel.SDFReceiver

    /** Return a new receiver of a type compatible with this director.
     *  This returns an instance of SDFReceiver.
     *  @return A new SDFReceiver.
     */
    public Receiver newReceiver() {
        return new SDFReceiver();
    }
View Full Code Here

Examples of ptolemy.domains.sdf.kernel.SDFReceiver

                if (!(receivers[channel][copy] instanceof SDFReceiver)) {
                    // NOTE: This should only occur if it is null.
                    continue;
                }

                SDFReceiver receiver = (SDFReceiver) receivers[channel][copy];
                IOPort connectedPort = receivers[channel][copy].getContainer();
                ComponentEntity connectedActor = (ComponentEntity) connectedPort
                        .getContainer();

                // Increment the number of waiting tokens.
                receiver._waitingTokens += createdTokens;

                // Update the buffer size, if necessary.
                int capacity = receiver.getCapacity();

                if ((capacity == SDFReceiver.INFINITE_CAPACITY)
                        || (receiver._waitingTokens > capacity)) {
                    receiver.setCapacity(receiver._waitingTokens);
                }

                // Only proceed if the connected actor is
                // something we are scheduling.
                // The most notable time when this will not be
View Full Code Here

Examples of ptolemy.domains.sdf.kernel.SDFReceiver

        private Receiver _receiver;

        public DelegatingReceiver() {
            super();
            _receiver = new SDFReceiver();
        }
View Full Code Here

Examples of ptolemy.domains.sdf.kernel.SDFReceiver

        }

        public DelegatingReceiver(IOPort container)
                throws IllegalActionException {
            super(container);
            _receiver = new SDFReceiver(container);
        }
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.