Package eu.admire.dispel.types.dtype

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


                "}";
        mRegistry.register("MyDType",
                new DispelObject(
                        "MyDType",
                        DispelObjectType.DOMAIN_TYPE,
                        new DomainType(new SimpleDType())));
        mRegistry.register("MySType",
                new DispelObject(
                        "MySType",
                        DispelObjectType.STRUCTURAL_TYPE,
                        new StructuralType(new PrimitiveSType("Integer"))));
View Full Code Here


            localName = text.substring(1, text.length()-1);
        }

        if (mDomainType == null)
        {
            mDomainType = new SimpleDType();
        }
        ((DTypeRepresents)mDomainType).setRepresents(
                new SimpleSemanticType(namespace, localName, prefix));
    }
View Full Code Here

        return mRegistry;
    }
   
    public void registerSemanticDType(String dispelName, SemanticType represents)
    {
        SimpleDType dtype = new SimpleDType();
        dtype.setRepresents(represents);
        DispelObject dtypeObj = new DispelObject(
                dispelName,
                DispelObjectType.DOMAIN_TYPE,
                new DomainType(dtype));
        mRegistry.register(dispelName, dtypeObj);
View Full Code Here

    {
        SimpleTupleTypeConverter converter = new SimpleTupleTypeConverter();
        converter.setTypeConverter(mConverter);
        ProcessingElementInputDescriptor input = new ProcessingElementInputDescriptor("input");
        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);
View Full Code Here

           localName = text.substring(1, text.length()-1);
       }

       if (mType == null)
       {
           mType = new SimpleDType();
       }
       ((DTypeRepresents)mType).setRepresents(
               new SimpleSemanticType(namespace, localName, prefix));
   }
View Full Code Here

TOP

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

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.