Package ptolemy.actor

Examples of ptolemy.actor.Manager


            if (((Effigy) tableau.getContainer()) instanceof PtolemyEffigy) {
                PtolemyEffigy effigy = (PtolemyEffigy) (tableau.getContainer());
                CompositeActor actor = (CompositeActor) effigy.getModel();

                // Create a manager if necessary.
                Manager manager = actor.getManager();

                if (manager == null) {
                    manager = new Manager(actor.workspace(), "manager");
                    actor.setManager(manager);
                }

                //manager.addExecutionListener(this);
                manager.execute();
            }
        }

        return demosURL;
    }
View Full Code Here


        NamedObj ptModel = getModel();

        if (ptModel instanceof CompositeActor
                && (ptModel.getContainer() == null)) {
            CompositeActor ptActorModel = (CompositeActor) ptModel;
            Manager manager = ptActorModel.getManager();

            if (manager != null) {
                manager.stop();
            }
        }

        return super._close();
    }
View Full Code Here

        }

        CompositeActor actor = (CompositeActor) model;

        // Create a manager.
        Manager manager = actor.getManager();

        if (manager == null) {
            try {
                actor.setManager(new Manager(actor.workspace(), "manager"));
            } catch (IllegalActionException ex) {
                throw new IllegalActionException(
                        this,
                        ex,
                        "Failed to set manager.  This can occur if "
View Full Code Here

     */
    public static ConstVariableModelAnalysis getAnalysis(NamedObj object)
            throws IllegalActionException {
        if (object.toplevel() instanceof CompositeActor) {
            CompositeActor toplevel = (CompositeActor) object.toplevel();
            Manager manager = toplevel.getManager();

            ConstVariableModelAnalysis analysis = (ConstVariableModelAnalysis) manager
                    .getAnalysis("ConstVariableModelAnalysis");

            if (analysis == null) {
                analysis = new ConstVariableModelAnalysis(toplevel);
                manager.addAnalysis("ConstVariableModelAnalysis", analysis);
            }

            return analysis;
        } else {
            return new ConstVariableModelAnalysis();
View Full Code Here

TOP

Related Classes of ptolemy.actor.Manager

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.