Package ptolemy.codegen.kernel

Examples of ptolemy.codegen.kernel.CodeGeneratorHelper.processCode()


                    int portNumber = 0;
                    while (ports.hasNext()) {
                        IOPort port = (IOPort) ports.next();
                        if (rates != null) {
                            code.append("switch ("
                                    + actorHelper.processCode("$actorSymbol("
                                            + "currentConfiguration)") + ") {"
                                    + _eol);
                            for (int k = 0; k < rates.length; k++) {
                                code.append("case " + k + ":" + _eol);
                                if (rates[k] != null) {
View Full Code Here


            // configuration number of the first contained actor is
            // the "most significant" number and that of the last is
            // the "least significant".
            if (actorNumber < numberOfActors - 1) {
                if (rates != null) {
                    code.append(actorHelper
                            .processCode("$actorSymbol(currentConfiguration)")
                            + " * " + _divisors[actorNumber + 1] + " + ");
                } else {
                    code.append("0 + ");
                }
View Full Code Here

                } else {
                    code.append("0 + ");
                }
            } else {
                if (rates != null) {
                    code.append(actorHelper
                            .processCode("$actorSymbol(currentConfiguration);"
                                    + _eol));
                } else {
                    code.append("0;" + _eol);
                }
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.