Package eu.admire.dispel.types.dtype

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


                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

        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

Related Classes of eu.admire.dispel.types.dtype.CollectionDType

Copyright © 2018 www.massapicom. 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.