Examples of SDFDirector


Examples of ptolemy.domains.sdf.kernel.SDFDirector

        // For embeddedCActor, there is only C code specifying its
        // functionality.  Therefore JNI has to be invoked when it is
        // executed.
        invokeJNI.setExpression("true");

        new SDFDirector(this, "SDFDirector");
    }
View Full Code Here

Examples of ptolemy.domains.sdf.kernel.SDFDirector

     */
    public void initialize() throws IllegalActionException {
        super.initialize();

        // debug sdf schedules:
        SDFDirector dir = (SDFDirector) getDirector();
        /*SDFScheduler scheduler = (SDFScheduler)*/dir.getScheduler();

        // For debugging the SDF scheduler...
        //StreamListener sa = new StreamListener();
        //scheduler.addDebugListener(sa);
        //
View Full Code Here

Examples of ptolemy.domains.sdf.kernel.SDFDirector

     */
    public void initialize() throws IllegalActionException {
        super.initialize();

        // debug sdf schedules:
        SDFDirector dir = (SDFDirector) getDirector();
        /*SDFScheduler scheduler = (SDFScheduler)*/dir.getScheduler();

        // For debugging the SDF scheduler...
        //StreamListener sa = new StreamListener();
        //scheduler.addDebugListener(sa);
        //
View Full Code Here

Examples of ptolemy.domains.sdf.kernel.SDFDirector

        Director topLevelDirector = toplevel.getDirector();

        // FIXME: nearly duplicate code in java/TestApplication.java
        if ((topLevelDirector != null)
                && topLevelDirector instanceof SDFDirector) {
            SDFDirector director = (SDFDirector) topLevelDirector;
            Parameter iterations = (Parameter) director
                    .getAttribute("iterations");
            Parameter copernicus_iterations = (Parameter) director
                    .getAttribute("copernicus_iterations");

            // Set to be a large number of iterations, unless
            // copernicus_iterations is set.
            if (copernicus_iterations != null) {
View Full Code Here

Examples of ptolemy.domains.sdf.kernel.SDFDirector

        super._createView();

        try {
            // Find out how many iterations the director expects to run for.
            CompositeActor toplevel = (CompositeActor) _toplevel;
            SDFDirector director = (SDFDirector) toplevel.getDirector();
            int iterations = ((IntToken) (director.iterations.getToken()))
                    .intValue();

            _sketchedSource = (SketchedSource) toplevel
                    .getEntity("SketchedSource");
View Full Code Here

Examples of ptolemy.domains.sdf.kernel.SDFDirector

            NameDuplicationException {
        super(workspace);
        setName("Butterfly");

        // Create the director, and set the number of iterations to execute.
        SDFDirector director = new SDFDirector(this, "director");
        director.iterations.setExpression("2400");
        setDirector(director);

        // Create the actors, and set their parameters.
        // First, the source, which counts up from 0.0 in steps of pi/100.
View Full Code Here

Examples of ptolemy.domains.sdf.kernel.SDFDirector

     *  of the model are not correct, or the computed rates for
     *  external ports are not correct.
     */
    protected Schedule _getParallelSchedule() throws NotSchedulableException,
            IllegalActionException {
        SDFDirector director = (SDFDirector) getContainer();
        CompositeActor model = (CompositeActor) director.getContainer();

        _checkDynamicRateVariables(model, _rateVariables);

        int vectorizationFactor = 1;

        //if (director instanceof SDFDirector) {
        Token token = director.vectorizationFactor.getToken();
        vectorizationFactor = ((IntToken) token).intValue();
        //}

        if (vectorizationFactor < 1) {
            throw new NotSchedulableException(this,
                    "The supplied vectorizationFactor must be "
                            + "a positive integer. " + "The given value was: "
                            + vectorizationFactor);
        }

        CompositeActor container = (CompositeActor) director.getContainer();

        // A linked list containing all the actors.
        LinkedList allActorList = new LinkedList();

        // Populate it.
View Full Code Here

Examples of ptolemy.domains.sdf.kernel.SDFDirector

            NameDuplicationException {
        _top = new TypedCompositeActor();
        _top.setName("top");
        _manager = new Manager();

        SDFDirector director = new SDFDirector();
        _top.setDirector(director);
        _top.setManager(_manager);

        _top.addChangeListener(this);
        _const = new Const(_top, "const");
View Full Code Here

Examples of ptolemy.domains.sdf.kernel.SDFDirector

            NameDuplicationException {
        Workspace w = new Workspace("w");
        TypedCompositeActor toplevel = new TypedCompositeActor(w);
        toplevel.setName("toplevel");

        SDFDirector director = new SDFDirector(toplevel, "director");

        // director.addDebugListener(new StreamListener());
        Manager manager = new Manager(w, "manager");
        toplevel.setManager(manager);
View Full Code Here

Examples of ptolemy.domains.sdf.kernel.SDFDirector

            toplevel = (CompositeActor) parser.parse(null, url);
        }

        // FIXME: nearly duplicate code in kernel/KernelMain.java
        SDFDirector director = (SDFDirector) toplevel.getDirector();

        if (director != null) {
            Parameter iterations = (Parameter) director
                    .getAttribute("iterations");
            Parameter copernicus_iterations = (Parameter) director
                    .getAttribute("copernicus_iterations");

            // Set to be a large number of iterations, unless
            // copernicus_iterations is set.
            if (copernicus_iterations != null) {
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.