Package ptolemy.kernel

Examples of ptolemy.kernel.ComponentEntity.attributeList()


            try {
                if (entity != null) {
                    // Look for an icon within the entity.
                    EditorIcon icon = null;
                    Iterator icons = entity.attributeList(EditorIcon.class)
                            .iterator();

                    while (icons.hasNext()) {
                        icon = (EditorIcon) icons.next();
                    }
View Full Code Here


            }

            ArrayList paramNames = new ArrayList();
            ArrayList paramTypes = new ArrayList();

            for (Iterator params = entity.attributeList(Parameter.class)
                    .iterator(); params.hasNext();) {
                Parameter param = (Parameter) params.next();
                paramNames.add(param.getName());
                paramTypes.add(new StringToken(param.getType().toString()));
            }
View Full Code Here

        for (int i = 0; i < entities.size(); i++) {
            ComponentEntity componentEntity = (ComponentEntity) (entities
                    .elementAt(i));
            Vector actorConstraints = new Vector();
            List unitsAttrs = componentEntity
                    .attributeList(ptolemy.data.unit.UnitAttribute.class);

            for (int j = 0; j < unitsAttrs.size(); j++) {
                UnitAttribute attr = (UnitAttribute) (unitsAttrs.get(j));
View Full Code Here

            ConfigurableAttribute actorAttribute = (ConfigurableAttribute) actor
                    .getAttribute("_iconDescription");
            String iconDescription = actorAttribute.getConfigureText();
            _setIconDescription(_entity, iconDescription);

            List<?> editorIconList = actor.attributeList(EditorIcon.class);

            for (Object editorIconObject : editorIconList) {
                EditorIcon editorIcon = (EditorIcon) editorIconObject;
                EditorIcon icon = (EditorIcon) editorIcon.clone(
                        ((NamedObj) _entity).workspace());
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.