Examples of SType


Examples of eu.admire.dispel.types.SType

        assertTrue(reg.getObject() instanceof StructuralType);
        assertTrue(((StructuralType)reg.getObject()).getSType() instanceof ArraySType);
        reg = builder.getRegistered().get("B");
        assertNotNull(reg);
        assertTrue(reg.getObject() instanceof StructuralType);
        SType stype = ((StructuralType)reg.getObject()).getSType();
        assertTrue(stype instanceof ListSType);
        assertTrue(((ListSType)stype).getChildType() instanceof ArraySType);
        reg = builder.getRegistered().get("C");
        assertNotNull(reg);
        assertTrue(reg.getObject() instanceof StructuralType);
View Full Code Here

Examples of eu.admire.dispel.types.SType

        modifiers = descriptor.getOutput("data").getModifiers();
        assertEquals(2, modifiers.size());
        mods = Arrays.asList("requiresStype", "preserved");
        assertTrue(mods.contains(modifiers.get(0).getName()));
        assertTrue(mods.contains(modifiers.get(1).getName()));
        SType stype = descriptor.getOutput("data").getSType();
        assertTrue(stype instanceof ListSType);
        assertTrue(((ListSType)stype).getChildType() instanceof TupleSType);
       
        var = builder.getDispelExecutionState().getVariables().get("compressedQuery");
        assertTrue(var.getType() instanceof ProcessingElementType);
View Full Code Here

Examples of eu.admire.dispel.types.SType

            mExecutionState.getNamespaceManager().addUsingDeclaration(qualifiedName);
            break;
        }
        case CONNECTION:
        {
            SType stype = ((ConnectionTypeStrategy)strategy).getSType();
            ConnectionType type = new ConnectionType();
            type.setSType(stype);
            mExecutionState.getUsedProcessingElements().registerType(
                    qualifiedName, type);
            mExecutionState.getNamespaceManager().addUsingDeclaration(qualifiedName);
View Full Code Here

Examples of eu.admire.dispel.types.SType

    {
        switch (context)
        {
        case TUPLE_ELEMENT:
            String name = ((TypeTupleElementStrategy)strategy).getElementName();
            SType type = ((TypeTupleElementStrategy)strategy).getElementSType();
            mTuple.addElement(name, type);
            break;
        }
    }
View Full Code Here

Examples of eu.admire.dispel.types.SType

    public RequestNode checkCompatibility(
            ProcessingElementOutputDescriptor sourceOutput,
            ProcessingElementInputDescriptor targetInput)
        throws TypeIncompatibleException
    {
        SType sourceSType = sourceOutput.getSType();
        DType sourceDType = sourceOutput.getDType();
        SType targetSType = targetInput.getSType();
        DType targetDType = targetInput.getDType();
       
        LOG.debug("Type checking: source=" + sourceOutput + ", target=" + targetInput);
        boolean stypesMatch = TypeUtilities.isEqual(sourceSType, targetSType);
        LOG.debug("Stypes match: " + stypesMatch);
View Full Code Here

Examples of eu.admire.dispel.types.SType

    public RequestNode checkCompatibility(
            ProcessingElementOutputDescriptor sourceOutput,
            ProcessingElementInputDescriptor targetInput)
        throws TypeIncompatibleException
    {
        SType sourceSType = sourceOutput.getSType();
        DType sourceDType = sourceOutput.getDType();
        SType targetSType = targetInput.getSType();
        DType targetDType = targetInput.getDType();
       
        LOG.debug("Strict type checking: source=" + sourceOutput + ", target=" + targetInput);
        if (!TypeUtilities.isEqual(sourceSType, targetSType))
        {
View Full Code Here

Examples of eu.admire.dispel.types.SType

    public RequestNode checkCompatibility(
            ProcessingElementOutputDescriptor sourceOutput,
            ProcessingElementInputDescriptor targetInput)
        throws TypeIncompatibleException
    {
        SType sourceSType = sourceOutput.getSType();
        DType sourceDType = sourceOutput.getDType();
        SType targetSType = targetInput.getSType();
        DType targetDType = targetInput.getDType();
       
        LOG.debug("Type checking: source=" + sourceOutput + ", target=" + targetInput);
        boolean stypesMatch = TypeUtilities.isEqual(sourceSType, targetSType);
        LOG.debug("Stypes match: " + stypesMatch);
View Full Code Here

Examples of eu.admire.dispel.types.SType

   
    public static boolean isEqualTuple(TupleSType t1, TupleSType t2)
    {
        for (Entry<String, SType> entry : t1.getElements().entrySet())
        {
            SType e2 = t2.getElements().get(entry.getKey());
            if (e2 == null)
            {
                if (t2.hasRest())
                {
                    // that's fine
View Full Code Here

Examples of eu.admire.dispel.types.SType

            ProcessingElement activity,
            RequestNodeInput target)
        throws LiteralValuesException
    {
        List<Object> literals = literal.getValues();
        SType stype = literal.getOutputDescriptor().getSType();
        try
        {
            if (EncodeTupleList.isTupleList(stype, literals))
            {
                ProcessingElement literalToTuple;
View Full Code Here

Examples of eu.admire.dispel.types.SType

    ProcessingElementInputDescriptor peInDescr1 = new ProcessingElementInputDescriptor(
        "unionInput1");
    ProcessingElementInputDescriptor peInDescr2 = new ProcessingElementInputDescriptor(
        "unionInput2");
    peInDescr1.setArray(false);
    SType sTypeIn1 = new PrimitiveSType("any");
    SType sTypeIn2 = new PrimitiveSType("Array");
    DType dtypeIn1 = new SimpleDType("DummyInputDType1");
    DType dtypeIn2 = new SimpleDType("DummyInputDType2");
    peInDescr1.setSType(sTypeIn1);
    peInDescr1.setDType(dtypeIn1);
    peInDescr2.setSType(sTypeIn1);
    peInDescr2.setDType(dtypeIn2);

    inputs.add(peInDescr1);
    inputs.add(peInDescr2);

    ProcessingElementOutputDescriptor peOutDescr1 = new ProcessingElementOutputDescriptor(
        "dummyOutput");
    ProcessingElementOutputDescriptor peOutDescr2 = new ProcessingElementOutputDescriptor(
        "dummyOutput2");
    SType sTypeOut1 = new PrimitiveSType("DummyOutputST1");
    SType sTypeOut2 = new PrimitiveSType("DummyOutputST2");
    DType dtypeOut1 = new SimpleDType("DummyOutputDType1");
    DType dtypeOut2 = new SimpleDType("DummyOutputDType2");
    peOutDescr1.setSType(sTypeOut1);
    peOutDescr1.setDType(dtypeOut1);
//    peOutDescr2.setSType(sTypeOut2);
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.