Package ptolemy.codegen.kernel

Examples of ptolemy.codegen.kernel.CodeGenerator$TargetFilter


    public static long copyFilesToCodeDirectory(
            ptolemy.actor.TypedCompositeActor compositeActor)
            throws IOException, IllegalActionException {
        // This is static so that ptolemy.actor.lib.jni.CompiledCompositeActor
        // will not depend on ptolemy.codegen.
        CodeGenerator codeGenerator = _getCodeGenerator(compositeActor);
        return CodeGeneratorHelper.copyFilesToCodeDirectory(compositeActor,
                codeGenerator);
    }
View Full Code Here


                    " is not an instance of "
                            + "ptolemy.actor.lib.jni.CompiledCompositeActor.");
        }

        ptolemy.actor.lib.jni.CompiledCompositeActor actor = (ptolemy.actor.lib.jni.CompiledCompositeActor) compositeActor;
        CodeGenerator codeGenerator = _getCodeGenerator(compositeActor);

        // Append the output to stderr, stdout and the StringBuffer;
        final StringBufferExec executeCommands = new StringBufferExec(true);
        int returnCode = 0;
        try {
            codeGenerator.setExecuteCommands(executeCommands);
            returnCode = codeGenerator.generateCode();
        } catch (Exception e) {
            throw new IllegalActionException(actor, e,
                    "Failed to generate code.");
        }
View Full Code Here

    private static CodeGenerator _getCodeGenerator(
            ptolemy.actor.TypedCompositeActor compositeActor)
            throws IllegalActionException {
        // This is static so that ptolemy.actor.lib.jni.CompiledCompositeActor
        // will not depend on ptolemy.codegen
        CodeGenerator codeGenerator = null;
        try {
            // FindBugs wants this.
            if (!(compositeActor instanceof ptolemy.actor.lib.jni.CompiledCompositeActor)) {
                throw new InternalErrorException(
                        compositeActor,
View Full Code Here

     @param parent The parent window, or null if there is none.
     */
    public void createEditor(NamedObj object, Frame parent) {
        // This is always used to configure the container, so
        // we just use that.
        CodeGenerator codeGenerator = (CodeGenerator) getContainer();

        if (!(parent instanceof TableauFrame)) {
            throw new InternalErrorException(
                    "Can't create a CodeGeneratorGUI without a tableau!");
        }
View Full Code Here

TOP

Related Classes of ptolemy.codegen.kernel.CodeGenerator$TargetFilter

Copyright © 2018 www.massapicom. 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.