Package ptolemy.codegen.kernel

Examples of ptolemy.codegen.kernel.Director


                            getComponent().getName()
                                    + "'s output offset initialization")));
            initializeCode.append(code);
        }

        Director directorHelper = (Director) _getHelper(((ptolemy.actor.CompositeActor) getComponent())
                .getDirector());

        // Generate the initialize code by the director helper.
        initializeCode.append(directorHelper.generateInitializeCode());

        return initializeCode.toString();
    }
View Full Code Here


     @exception IllegalActionException If the director helper throws it
     *   while generating mode transition code.
     */
    public void generateModeTransitionCode(StringBuffer code)
            throws IllegalActionException {
        Director directorHelper = (Director) _getHelper(((ptolemy.actor.CompositeActor) getComponent())
                .getDirector());
        directorHelper.generateModeTransitionCode(code);
    }
View Full Code Here

     *   an actor throws it while generating postfire code for the actor.
     */
    public String generatePostfireCode() throws IllegalActionException {
        StringBuffer code = new StringBuffer();
        //code.append(super.generatePostfireCode());
        Director directorHelper = (Director) _getHelper(((ptolemy.actor.CompositeActor) getComponent())
                .getDirector());
        code.append(directorHelper.generatePostfireCode());
        return code.toString();
    }
View Full Code Here

     */
    public String generatePreinitializeCode() throws IllegalActionException {
        StringBuffer code = new StringBuffer();
        code.append(super.generatePreinitializeCode());

        Director directorHelper = (Director) _getHelper(((ptolemy.actor.CompositeActor) getComponent())
                .getDirector());

        code.append(directorHelper.generatePreinitializeCode());

        return code.toString();
    }
View Full Code Here

    public String generateVariableDeclaration() throws IllegalActionException {
        StringBuffer code = new StringBuffer();

        code.append(super.generateVariableDeclaration());

        Director directorHelper = (Director) _getHelper(((ptolemy.actor.CompositeActor) getComponent())
                .getDirector());
        code.append(directorHelper.generateVariableDeclaration());

        return processCode(code.toString());
    }
View Full Code Here

        //                + getComponent().getName()
        //                + "'s variable initialization."));

        code.append(super.generateVariableInitialization());

        Director directorHelper = (Director) _getHelper(((ptolemy.actor.CompositeActor) getComponent())
                .getDirector());
        code.append(directorHelper.generateVariableInitialization());

        return processCode(code.toString());
    }
View Full Code Here

     *   an actor throws it while generating wrapup code for the actor.
     */
    public String generateWrapupCode() throws IllegalActionException {
        StringBuffer code = new StringBuffer();
        //code.append(super.generateWrapupCode());
        Director directorHelper = (Director) _getHelper(((ptolemy.actor.CompositeActor) getComponent())
                .getDirector());
        code.append(directorHelper.generateWrapupCode());
        return code.toString();
    }
View Full Code Here

            CodeGeneratorHelper helperObject = (CodeGeneratorHelper) _getHelper((NamedObj) actor);
            files.addAll(helperObject.getHeaderFiles());
        }

        // Get headers needed by the director helper.
        Director directorHelper = (Director) _getHelper(((ptolemy.actor.CompositeActor) getComponent())
                .getDirector());
        files.addAll(directorHelper.getHeaderFiles());

        return files;
    }
View Full Code Here

            CodeGeneratorHelper helperObject = (CodeGeneratorHelper) _getHelper((NamedObj) actor);
            includeDirectories.addAll(helperObject.getIncludeDirectories());
        }

        // Get include directories needed by the director helper.
        Director directorHelper = (Director) _getHelper(((ptolemy.actor.CompositeActor) getComponent())
                .getDirector());
        includeDirectories.addAll(directorHelper.getIncludeDirectories());

        return includeDirectories;
    }
View Full Code Here

            CodeGeneratorHelper helperObject = (CodeGeneratorHelper) _getHelper((NamedObj) actor);
            libraries.addAll(helperObject.getLibraries());
        }

        // Get libraries needed by the director helper.
        Director directorHelper = (Director) _getHelper(((ptolemy.actor.CompositeActor) getComponent())
                .getDirector());
        libraries.addAll(directorHelper.getLibraries());

        return libraries;
    }
View Full Code Here

TOP

Related Classes of ptolemy.codegen.kernel.Director

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.