Examples of CollectionDType


Examples of eu.admire.dispel.types.CollectionDType

    TupleDType dtype = new TupleDType();
    dtype.addElement("a", new SimpleDType("http://bla"));
    dtype.addElement("b", new SimpleDType("http://blabla"));
    dtype.addElement("c", simpleDType);
   
    CollectionDType collectionDType = new CollectionDType(simpleDType, "Set");

    registry.registerDType(dTypeName, collectionDType);
  }
View Full Code Here

Examples of eu.admire.dispel.types.dtype.CollectionDType

        if (mArraySize != -1)
        {
            mChildType = new ArrayDType(mChildType, mArraySize);
        }
       
        CollectionDType collectionType =
            new CollectionDType(mChildType, mCollectionType);
        collectionType.setRepresents(mRepresents);
        return collectionType;
    }
View Full Code Here

Examples of eu.admire.dispel.types.dtype.CollectionDType

                return true;
            }
        }
        if (d1 instanceof CollectionDType && d2 instanceof CollectionDType)
        {
            CollectionDType c1 = (CollectionDType)d1;
            CollectionDType c2 = (CollectionDType)d2;
            return (c1.getCollectionType().equals(c2.getCollectionType())
                    && isEqual(c1.getType(), c2.getType()));
        }
        if (d1 instanceof TupleDType && d2 instanceof TupleDType)
        {
            TupleDType t1 = (TupleDType)d1;
            TupleDType t2 = (TupleDType)d2;
View Full Code Here

Examples of eu.admire.dispel.types.dtype.CollectionDType

        TupleDType tupleIn = new TupleDType();
        SimpleDType d = new SimpleDType();
        d.setRepresents(new SimpleSemanticType("", "tempInKelvin"));
        tupleIn.addElement("min", d);
        tupleIn.addElement("max", d);
        input.setDType(new CollectionDType(tupleIn, CollectionDType.LIST));
        TupleDType tupleOut = new TupleDType();
        d = new SimpleDType();
        d.setRepresents(new SimpleSemanticType("", "tempInCelsius"));
        tupleOut.addElement("min", d);
        tupleOut.addElement("max", d);
        ProcessingElementOutputDescriptor output = new ProcessingElementOutputDescriptor("output");
        output.setDType(new CollectionDType(tupleOut, CollectionDType.LIST));
        RequestNode result = converter.checkCompatibility(output, input);

        TestCase.assertTrue(result instanceof CompositeProcessingElement);
        CompositeProcessingElement composite = (CompositeProcessingElement)result;
        List<RequestNodeInput> targets = composite.getInput("input", 0).getTargets();
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.