Examples of DType


Examples of eu.admire.dispel.types.DType

    ProcessingElementOutputDescriptor peOutDescr1 = new ProcessingElementOutputDescriptor(
        "data");
    SType sTypeOut1 = new AnySType();
    // SType sTypeOut2 = new PrimitiveSType("DummyOutputST2");
    DType dtypeOut1 = new SimpleDType("DummyOutputDType1");
    // DType dtypeOut2 = new SimpleDType("DummyOutputDType2");
    peOutDescr1.setSType(sTypeOut1);
    peOutDescr1.setDType(dtypeOut1);

    outputs.add(peOutDescr1);
View Full Code Here

Examples of eu.admire.dispel.types.DType

        InputConnection inCon =
          ParametersFactory.eINSTANCE.createInputConnection();
        inCon.setName(input.getName());
       
        DType dt = input.getDType();
       
        if (dt instanceof SimpleDType) {
         
          SimpleDType sd = (SimpleDType) dt;
          DomainTypeReference dtyperef =
            ReferencesFactory.eINSTANCE.createDomainTypeReference();
         
          DomainTypeDefinition def = TypesFactory.eINSTANCE.createDomainTypeDefinition();
          def.setName(sd.toString().toString());
         
          dtyperef.setTarget(def);
          inCon.setDomainType(dtyperef);
        }
       


        if (dt != null) {
          System.out.println ("IN dt: " + dt.toString());
        }
       
        if (input.getSType() != null) {
          System.out.println ("IN st: " + input.getSType().toString());
        }
        

        this.getProcessingElementParameters().add(inCon);
      }
    }
   
    if (descriptor.getOutputs() != null) {
      for (ProcessingElementOutputDescriptor output:  descriptor.getOutputs()) {

        OutputConnection outCon = ParametersFactory.eINSTANCE.createOutputConnection()
        outCon.setName(output.getName());

        DType dt = output.getDType();

        /**
      if (dt != null) {
        System.out.println ("OU dt: " + dt.toString());
      }
         **/
       
        if (dt != null) {
          System.out.println ("OUT dt: " + dt.toString());
        }
       
        if (output.getSType() != null) {
          System.out.println ("OUT st: " + output.getSType().toString());
        }
View Full Code Here

Examples of eu.admire.dispel.types.DType

      }
    }
   
    if (dtypes != null) {
      for (String key : dtypes.keySet()) {
        DType d = dtypes.get(key);
        if (d != null) {
          FileWriter fw = new FileWriter(tmp);
          fw.write("package eu.admire {" + NL);
          fw.write("Dtype " + key + " is " + d.toString() + ";" + NL);
          fw.write(NL + "}" + NL);
          fw.close();

        }
      }
View Full Code Here

Examples of eu.admire.dispel.types.DType

      }
    }
   
    if (dtypes != null) {
      for (String key : dtypes.keySet()) {
        DType d = dtypes.get(key);
       
        if (d != null) {
          fw.write("Dtype " + key + " is " + d.toString() + ";" + NL);
        }
      }
    }
    fw.write(NL + "}" + NL);
    fw.close();
View Full Code Here

Examples of eu.admire.dispel.types.DType

        if (input.getSType() != null) {
          s.append(":");
          s.append(input.getSType().toString());
        }
        if (input.getDType() != null) {
          DType tes = input.getDType();
          s.append("::");
          s.append(input.getDType().toString());
        }

        //Seems the registry uses this method for locator modifier
View Full Code Here

Examples of eu.admire.dispel.types.DType

    for (ProcessingElementOutputDescriptor output : outputs) {
      inputPE.append(DELIMITER + "BEGIN_OUTPUT");
      inputPE.append(DELIMITER + output.getName());
      getStypeData(inputPE, output.getSType());
      inputPE.append(DELIMITER);
      DType dtype = output.getDType();
      if (dtype != null) {
        inputPE.append(dtype.toString().replaceAll("\"", ""));
      } else {
        inputPE.append(output.getDType());
      }
      inputPE.append(DELIMITER + "END_OUTPUT");
    }
View Full Code Here

Examples of eu.admire.dispel.types.DType

      inputPE.append(DELIMITER + "BEGIN_INPUT");
      inputPE.append(DELIMITER + input.getName());
      inputPE.append(DELIMITER + input.getIsDataSourceInput());
      getStypeData(inputPE, input.getSType());
      inputPE.append(DELIMITER);
      DType dtype = input.getDType();
      if (dtype != null) {
        inputPE.append(dtype.toString().replaceAll("\"", ""));
      } else {
        inputPE.append(input.getDType());
      }
      inputPE.append(DELIMITER + "END_INPUT");
    }
View Full Code Here

Examples of eu.admire.dispel.types.DType

        Iterator<String> it = map.keySet().iterator();
        inputDType.append(DELIMITER + "BEGIN_TUPLE");
        while (it.hasNext()) {
          inputDType.append(DELIMITER + "BEGIN_TUPLE_ELEMENT");
          String var = it.next();
          DType varType = map.get(var);
          inputDType.append(DELIMITER + var);
          getDTypeData(inputDType, varType);
          inputDType.append(DELIMITER + "END_TUPLE_ELEMENT");
        }
        inputDType.append(DELIMITER + "END_TUPLE");
View Full Code Here

Examples of eu.admire.dispel.types.DType

        "dummyInput");
    ProcessingElementInputDescriptor peInDescr2 = new ProcessingElementInputDescriptor(
        "dummyInput2");
    peInDescr1.setArray(false);
    SType sTypeIn1 = new PrimitiveSType("DummyInputST1");
    DType dtypeIn1 = new SimpleDType("DummyInputDType1");
    DType dtypeIn2 = new SimpleDType("DummyInputDType2");
    peInDescr1.setSType(sTypeIn1);
    peInDescr1.setDType(dtypeIn1);
    peInDescr2.setSType(sTypeIn1);
    peInDescr2.setDType(dtypeIn2);

    inputsPE.add(peInDescr1);
    inputsPE.add(peInDescr2);

    ProcessingElementOutputDescriptor peOutDescr1 = new ProcessingElementOutputDescriptor(
        "dummyOutput");
    ProcessingElementOutputDescriptor peOutDescr2 = new ProcessingElementOutputDescriptor(
        "dummyOutput2");
    SType sTypeOut1 = new PrimitiveSType("DummyOutputST1");
    DType dtypeOut1 = new SimpleDType("DummyOutputDType1");
    peOutDescr1.setSType(sTypeOut1);
    peOutDescr1.setDType(dtypeOut1);

    outputsPE.add(peOutDescr1);
    outputsPE.add(peOutDescr2);
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.