Package ptolemy.actor

Examples of ptolemy.actor.Manager$State


        }

        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$State

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.