Examples of attributeList()


Examples of ptolemy.actor.CompositeActor.attributeList()

                        throw new Exception("Failed to parse \"" + args[i]
                                + "\"", ex);
                    }

                    // Get all instances of this class contained in the model
                    List codeGenerators = toplevel
                            .attributeList(CodeGenerator.class);

                    if (codeGenerators.size() == 0) {
                        // Add a codeGenerator
                        // FIXME: This introduces a dependency to codegen.c
View Full Code Here

Examples of ptolemy.actor.Director.attributeList()

            if ((_show & DIRECTOR_PARAMETERS) != 0) {
                // Director parameters.
                Director director = _model.getDirector();

                if (director != null) {
                    List dirParameterList = director
                            .attributeList(Parameter.class);

                    if (dirParameterList.size() > 0) {
                        JLabel pTitle = new JLabel("Director parameters:");
View Full Code Here

Examples of ptolemy.actor.gui.Configuration.attributeList()

        //by their name.  an exclusion can be "exact" or "contains".  an "exact"
        //exclusion requires the name on the exclusion list to exactly match
        //the name of the param.  a "contains" exclusion just requires that the
        //name of exclusion is contained in the name of the exclusion.
        Configuration config = getConfiguration();
        Iterator itt = config.attributeList(
                ptolemy.kernel.util.StringAttribute.class).iterator();
        Vector exclusions = new Vector();
        while (itt.hasNext()) {
            NamedObj att = (NamedObj) itt.next();
View Full Code Here

Examples of ptolemy.data.expr.ScopeExtender.attributeList()

            // such as ScopeExtendingAttribute.
            Iterator extenders = attributeList(ScopeExtender.class).iterator();

            while (extenders.hasNext()) {
                ScopeExtender extender = (ScopeExtender) extenders.next();
                Iterator extenderAttributes = extender.attributeList()
                        .iterator();
                while (extenderAttributes.hasNext()) {
                    Attribute extenderAttribute = (Attribute) extenderAttributes
                            .next();
                    if (extenderAttribute instanceof Variable) {
View Full Code Here

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

Examples of ptolemy.kernel.ComponentEntity.attributeList()

            }

            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

Examples of ptolemy.kernel.ComponentEntity.attributeList()

        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

Examples of ptolemy.kernel.ComponentEntity.attributeList()

            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

Examples of ptolemy.kernel.ComponentRelation.attributeList()

                            .relationList().iterator();

                    while (relations.hasNext()) {
                        ComponentRelation relation = (ComponentRelation) relations
                                .next();
                        List vertexList = relation.attributeList(Vertex.class);

                        if (vertexList.size() != 0) {
                            // Add in all the vertexes.
                            Iterator vertexes = vertexList.iterator();
View Full Code Here

Examples of ptolemy.kernel.Entity.attributeList()

            // of a missing class
            Iterator entities = parsedContainer.allAtomicEntityList()
                    .iterator();
            while (entities.hasNext()) {
                Entity entity = (Entity) entities.next();
                Iterator attributes = entity.attributeList().iterator();
                while (attributes.hasNext()) {
                    Attribute attribute = (Attribute) attributes.next();
                    if (attribute instanceof Variable) {
                        Variable variable = (Variable) attribute;
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.