Package ptolemy.moml

Examples of ptolemy.moml.LibraryAttribute


            NamedObj model = ((PtolemyEffigy) effigy).getModel();

            if (model instanceof CompositeEntity) {
                // Check to see whether this factory contains a
                // default library.
                LibraryAttribute library = (LibraryAttribute) getAttribute(
                        "_library", LibraryAttribute.class);

                MatchResultTableau tableau = new MatchResultTableau(
                        (PtolemyEffigy) effigy, effigy.uniqueName("tableau"),
                        library);
View Full Code Here


                        .getEntity("graphTableau");

                if (tableau == null) {
                    // Check to see whether this factory contains a
                    // default library.
                    LibraryAttribute library = (LibraryAttribute) getAttribute(
                            "_library", LibraryAttribute.class);
                    tableau = new ActorGraphTableau((PtolemyEffigy) effigy,
                            "graphTableau", library);
                }
View Full Code Here

                        .getEntity("editIconTableau");

                if (tableau == null) {
                    // Check to see whether this factory contains a
                    // default library.
                    LibraryAttribute library = (LibraryAttribute) getAttribute(
                            "_library", LibraryAttribute.class);
                    tableau = new EditIconTableau((PtolemyEffigy) effigy,
                            "editIconTableau", library);
                }
View Full Code Here

            if (model instanceof TransformationRule
                    || model instanceof CompositeActorMatcher) {
                // Check to see whether this factory contains a
                // default library.
                LibraryAttribute library = (LibraryAttribute) getAttribute(
                        "_library", LibraryAttribute.class);

                GTTableau tableau = new GTTableau((PtolemyEffigy) effigy,
                        effigy.uniqueName("gtTableau"), library);
                return tableau;
View Full Code Here

            NamedObj model = ((PtolemyEffigy) effigy).getModel();

            if (model instanceof FSMActor) {
                // Check to see whether this factory contains a
                // default library.
                LibraryAttribute library = (LibraryAttribute) getAttribute(
                        "_library", LibraryAttribute.class);

                FSMGraphTableau tableau = new FSMGraphTableau(
                        (PtolemyEffigy) effigy, effigy.uniqueName("tableau"),
                        library);
View Full Code Here

        // if there is one.
        // FIXME: How do we make changes to the library persistent?
        boolean gotLibrary = false;

        try {
            LibraryAttribute libraryAttribute = (LibraryAttribute) entity
                    .getAttribute("_library", LibraryAttribute.class);

            if (libraryAttribute != null) {
                // The model contains a library.
                try {
                    _topLibrary = libraryAttribute.getLibrary();
                    gotLibrary = true;
                } catch (SecurityException ex) {
                    System.out.println("Warning: failed to parse "
                            + "_library attribute (running in an applet "
                            + "or sandbox always causes this)");
View Full Code Here

                        .getEntity("navigableGraphTableau");

                if (tableau == null) {
                    // Check to see whether this factory contains a
                    // default library.
                    LibraryAttribute library = (LibraryAttribute) getAttribute(
                            "_library", LibraryAttribute.class);
                    tableau = new NavigableActorGraphTableau(
                            (PtolemyEffigy) effigy, "navigableGraphTableau",
                            library);
                }
View Full Code Here

            PtolemyEffigy effigy = (PtolemyEffigy) proxy;

            if (effigy.getModel() instanceof InterfaceAutomaton) {
                // Check to see whether this factory contains a
                // default library.
                LibraryAttribute library = (LibraryAttribute) getAttribute(
                        "_library", LibraryAttribute.class);

                InterfaceAutomatonGraphTableau tableau = new InterfaceAutomatonGraphTableau(
                        (PtolemyEffigy) proxy, proxy.uniqueName("tableau"),
                        library);
View Full Code Here

            NamedObj model = ((PtolemyEffigy) effigy).getModel();

            if (model instanceof Case) {
                // Check to see whether this factory contains a
                // default library.
                LibraryAttribute library = (LibraryAttribute) getAttribute(
                        "_library", LibraryAttribute.class);

                CaseGraphTableau tableau = new CaseGraphTableau(
                        (PtolemyEffigy) effigy, effigy.uniqueName("tableau"),
                        library);
View Full Code Here

            // Try to get the class name for the state from the library,
            // so that the library and the toolbar are assured of creating
            // the same object.
            try {
                LibraryAttribute attribute = (LibraryAttribute) toplevel
                        .getAttribute("_library", LibraryAttribute.class);

                if (attribute != null) {
                    CompositeEntity library = attribute.getLibrary();
                    Entity prototype = library.getEntity("state");

                    if (prototype != null) {
                        moml = prototype.exportMoML(stateName);
View Full Code Here

TOP

Related Classes of ptolemy.moml.LibraryAttribute

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.