Examples of SampleDelay


Examples of ptolemy.domains.sdf.lib.SampleDelay

            protected void _execute() throws Exception {
                _const.output.unlinkAll();
                _rec.input.unlinkAll();

                AddSubtract add = new AddSubtract(_top, "add");
                SampleDelay sampleDelay = new SampleDelay(_top, "sampleDelay");
                sampleDelay.initialOutputs.setExpression("{4, 5}");
                _top.connect(_const.output, add.plus);

                ComponentRelation relation = _top.connect(add.output,
                        sampleDelay.input);
View Full Code Here

Examples of ptolemy.domains.sdf.lib.SampleDelay

            _debug("Actor " + actorName + " repeats:" + currentActor._repeats);
            _debug(" initial_tokens? "
                    + currentActor._shouldGenerateInitialTokens);

            if (currentActor._actor instanceof SampleDelay) {
                SampleDelay delay = (SampleDelay) currentActor._actor;
                ArrayToken initialTokens = (ArrayToken) delay.initialOutputs
                        .getToken();
                int delayCount = initialTokens.length();

                _debug(" **DELAY** with " + delayCount + " initial tokens");
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.