Examples of attributeList()


Examples of ptolemy.kernel.Entity.attributeList()

            if (entity == null) {
                return null;
            }

            List locationList = entity.attributeList(Locatable.class);

            if (locationList.size() > 0) {
                return locationList.get(0);
            } else {
                try {
View Full Code Here

Examples of ptolemy.kernel.Relation.attributeList()

            // Collect constraints from all transitions.
            Iterator transitionRelations = relationList().iterator();

            while (transitionRelations.hasNext()) {
                Relation tr = (Relation) transitionRelations.next();
                attributes = tr.attributeList(HasTypeConstraints.class)
                        .iterator();

                while (attributes.hasNext()) {
                    HasTypeConstraints typeableAttribute = (HasTypeConstraints) attributes
                            .next();
View Full Code Here

Examples of ptolemy.kernel.Relation.attributeList()

            // Combine relations if possible.
            relations = GTTools.getChildren(host, false, false, false, true);
            for (Object relationObject : relations) {
                Relation relation = (Relation) relationObject;
                List<?> vertices = relation.attributeList(Vertex.class);
                if (vertices.isEmpty()) {
                    List<?> linkedObjects = relation.linkedObjectsList();
                    if (linkedObjects.size() == 2) {
                        NamedObj head = (NamedObj) linkedObjects.get(0);
                        NamedObj tail = (NamedObj) linkedObjects.get(1);
View Full Code Here

Examples of ptolemy.kernel.util.Attribute.attributeList()

            Attribute attribute = (Attribute) attributes.next();

            // There is a level of indirection where the "subIcon" is a
            // "visible attribute" containing an attribute named "_icon"
            // that actually has the icon.
            Iterator subIcons = attribute.attributeList(EditorIcon.class)
                    .iterator();

            while (subIcons.hasNext()) {
                EditorIcon subIcon = (EditorIcon) subIcons.next();
View Full Code Here

Examples of ptolemy.kernel.util.Attribute.attributeList()

                // of Locatable.
                Iterator attributes = composite.attributeList().iterator();

                while (attributes.hasNext()) {
                    Attribute attribute = (Attribute) attributes.next();
                    List locations = attribute.attributeList(Locatable.class);

                    if ((locations.size() > 0)
                            && (attribute.getAttribute("_renderFirst") != null)) {
                        nodes.add(locations.get(0));
                    }
View Full Code Here

Examples of ptolemy.kernel.util.Attribute.attributeList()

                    if (attribute instanceof Director) {
                        nodes.add(_getLocation(attribute));
                    } else {
                        // The object is not a director, so only give a location
                        // if one exists already.
                        List locations = attribute
                                .attributeList(Locatable.class);

                        if (locations.size() > 0) {
                            nodes.add(locations.get(0));
                        }
View Full Code Here

Examples of ptolemy.kernel.util.Attribute.attributeList()

                // of Locatable.
                Iterator attributes = composite.attributeList().iterator();

                while (attributes.hasNext()) {
                    Attribute attribute = (Attribute) attributes.next();
                    List locations = attribute.attributeList(Locatable.class);

                    if ((locations.size() > 0)
                            && (attribute.getAttribute("_renderLast") != null)) {
                        nodes.add(locations.get(0));
                    }
View Full Code Here

Examples of ptolemy.kernel.util.Attribute.attributeList()

            } else if (_temporaryMatch.containsValue(container)) {
                container = (NamedObj) _temporaryMatch.getKey(container);
            }
            Attribute attribute = container.getAttribute(name);
            if (attribute != null && attributeClass.isInstance(attribute)) {
                Parameter parameter = (Parameter) attribute.attributeList()
                        .get(0);
                try {
                    return parameter == null ? null : parameter.getToken();
                } catch (IllegalActionException e) {
                    return null;
View Full Code Here

Examples of ptolemy.kernel.util.Attribute.attributeList()

            if (_replacementToHost.containsValue(container)) {
                container = (NamedObj) _replacementToHost.getKey(container);
            }
            Attribute attribute = container.getAttribute(name);
            if (attribute != null && attributeClass.isInstance(attribute)) {
                Parameter parameter = (Parameter) attribute.attributeList()
                        .get(0);
                try {
                    return parameter == null ? null : parameter.getToken();
                } catch (IllegalActionException e) {
                    return null;
View Full Code Here

Examples of ptolemy.kernel.util.Attribute.attributeList()

            moml.append("<group>");

            Attribute param = _object.getAttribute(name);
            moml.append("<property name=\"" + param.getName() + "\">");

            Iterator styles = param.attributeList(ParameterEditorStyle.class)
                    .iterator();
            boolean foundOne = false;

            while (styles.hasNext()) {
                foundOne = true;
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.