Examples of labelSet()


Examples of ptolemy.data.RecordToken.labelSet()

        }
        RecordToken record1 = (RecordToken) token1;
        RecordToken record2 = (RecordToken) token2;

        Set myLabelSet = record1.labelSet();
        Set argLabelSet = record2.labelSet();

        if (!myLabelSet.equals(argLabelSet)) {
            return false;
        }
View Full Code Here

Examples of ptolemy.data.RecordToken.labelSet()

            throw new IllegalActionException(this, "No director!");
        }

        if (input.hasToken(0)) {
            RecordToken record = (RecordToken) input.get(0);
            Iterator labels = record.labelSet().iterator();

            while (labels.hasNext()) {
                String label = (String) labels.next();
                Token value = record.get(label);
                IOPort port = (IOPort) getPort(label);
View Full Code Here

Examples of ptolemy.data.RecordToken.labelSet()

                        .iterator(); actorNames.hasNext();) {
                    String actorName = (String) actorNames.next();
                    RecordToken assignment = (RecordToken) correctPortTypes
                            .get(actorName);

                    for (Iterator names = assignment.labelSet().iterator(); names
                            .hasNext();) {
                        String name = (String) names.next();
                        StringToken value = (StringToken) assignment.get(name);

                        if (actualPortTypes.get(actorName) == null) {
View Full Code Here

Examples of ptolemy.data.RecordToken.labelSet()

                        .iterator(); actorNames.hasNext();) {
                    String actorName = (String) actorNames.next();
                    RecordToken assignment = (RecordToken) correctParameterTypes
                            .get(actorName);

                    for (Iterator names = assignment.labelSet().iterator(); names
                            .hasNext();) {
                        String name = (String) names.next();
                        StringToken value = (StringToken) assignment.get(name);
                        StringToken actualValue = (StringToken) ((RecordToken) actualParameterTypes
                                .get(actorName)).get(name);
View Full Code Here

Examples of ptolemy.data.RecordToken.labelSet()

        // Handle indexing into a record.
        if ((argCount == 1) && token instanceof RecordToken) {
            RecordToken record = (RecordToken) token;

            if (record.labelSet().contains(node.getMethodName())) {
                _evaluatedChildToken = (record.get(node.getMethodName()));
                return;
            }
        }
View Full Code Here

Examples of ptolemy.data.RecordToken.labelSet()

        // Handle indexing into a record.
        if ((argCount == 1) && tokens[0] instanceof RecordToken) {
            RecordToken record = (RecordToken) tokens[0];

            if (record.labelSet().contains(node.getMethodName())) {
                _evaluatedChildToken = (record.get(node.getMethodName()));
                return;
            }
        }
View Full Code Here

Examples of ptolemy.data.RecordToken.labelSet()

        // Handle indexing into a record.
        if ((argCount == 1) && token instanceof RecordToken) {
            RecordToken record = (RecordToken) token;

            if (record.labelSet().contains(node.getMethodName())) {
                _evaluatedChildToken = (record.get(node.getMethodName()));
                return;
            }
        }
View Full Code Here

Examples of ptolemy.data.RecordToken.labelSet()

        if (_transformer != null) {
            RecordToken parameters = (RecordToken) (styleSheetParameters
                    .getToken());
            if (parameters != null) {
                Iterator labels = parameters.labelSet().iterator();

                while (labels.hasNext()) {
                    String name = (String) labels.next();
                    Token token = parameters.get(name);
                    if (token instanceof StringToken) {
View Full Code Here

Examples of ptolemy.data.RecordToken.labelSet()

        // Pack a HashMap with all of the record entries from
        // the original record and all of the updating ports.
        HashMap outputMap = new HashMap();

        RecordToken record = (RecordToken) input.get(0);
        Set recordLabels = record.labelSet();

        for (Iterator i = recordLabels.iterator(); i.hasNext();) {
            String name = (String) i.next();
            Token value = record.get(name);
            outputMap.put(name, value);
View Full Code Here

Examples of ptolemy.data.type.RecordType.labelSet()

            RecordType recordType1 = (RecordType) type1;
            RecordType recordType2 = (RecordType) type2;

            Set unionSet = new HashSet();
            Set labelSet1 = recordType1.labelSet();
            Set labelSet2 = recordType2.labelSet();
            unionSet.addAll(labelSet1);
            unionSet.addAll(labelSet2);

            Object[] labelsObjects = unionSet.toArray();
            int size = labelsObjects.length;
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.