Examples of AnySType


Examples of eu.admire.dispel.types.AnySType

    tuple.setRest(true);
    SType listOfTuplesType = new ListSType(tuple);
    SType listOfPrimitiveSType = new ListSType(new PrimitiveSType("Real"));
    SType arrayOfTuplesType = new ArraySType(tuple, 5);
    SType arrayOfPrimitiveSType = new ArraySType(new PrimitiveSType("Real"), 5);
    SType arrayOfAnySType = new ArraySType(new AnySType(), 5);
   
    registry.registerSType(sTypeName, arrayOfAnySType);
  }
View Full Code Here

Examples of eu.admire.dispel.types.AnySType

    tuple.setRest(true);
    SType listOfTuplesType = new ListSType(tuple);
    SType listOfPrimitiveSType = new ListSType(new PrimitiveSType("Real"));
    SType arrayOfTuplesType = new ArraySType(tuple, 5);
    SType arrayOfPrimitiveSType = new ArraySType(new PrimitiveSType("Real"), 5);
    SType arrayOfAnySType = new ArraySType(new AnySType(), 5);
   
    registry.registerSType(sTypeName, listOfTuplesType);
  }
View Full Code Here

Examples of eu.admire.dispel.types.AnySType

    tuple.setRest(true);
    SType listOfTuplesType = new ListSType(tuple);
    SType listOfPrimitiveSType = new ListSType(new PrimitiveSType("Real"));
    SType arrayOfTuplesType = new ArraySType(tuple, 5);
    SType arrayOfPrimitiveSType = new ArraySType(new PrimitiveSType("Real"), 5);
    SType arrayOfAnySType = new ArraySType(new AnySType(), 5);
   
    registry.registerSType(sTypeName, arrayOfAnySType);
  }
View Full Code Here

Examples of eu.admire.dispel.types.AnySType

    ProcessingElementInputDescriptor peInDescr2 = new ProcessingElementInputDescriptor(
        "data");
    peInDescr1.setArray(false);
    SType sTypeIn1 = new PrimitiveSType("String");
    peInDescr1.setSType(sTypeIn1);
    peInDescr2.setSType(new AnySType());

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

    ProcessingElementOutputDescriptor peOutDescr1 = new ProcessingElementOutputDescriptor(
View Full Code Here

Examples of eu.admire.dispel.types.AnySType

    peInDescr1.setArray(false);

    // Inserting input sType Primitive SType (String)
    SType sTypeIn1 = new PrimitiveSType("String");
    peInDescr1.setSType(new AnySType());

    TupleSType tuple1 = new TupleSType();
    tuple1.setRest(true);

    DType dtype = new SimpleDType(
View Full Code Here

Examples of eu.admire.dispel.types.AnySType

    // Inserting input sType Primitive SType (String)
    SType sTypeIn1 = new PrimitiveSType("String");
    peInDescr1.setSType(sTypeIn1);

    // Inserting input sType any
    peInDescr2.setSType(new AnySType());

    // Inserting input sType Array of Tuples with two Primitive STypes and
    // rest
    TupleSType tuple1 = new TupleSType();
    tuple1.addElement("s", new PrimitiveSType("String"));
View Full Code Here

Examples of eu.admire.dispel.types.AnySType

        "resource", true);
    peInDescr1.setArray(false);
    ListSType sTypeIn1 = new ListSType(new PrimitiveSType(
        "primitiveSTypeDummyTestA"));
    SType sTypeIn2 = new PrimitiveSType("locator");
    SType sTypeIn3 = new AnySType();
    peInDescr1.setSType(sTypeIn2);
    peInDescr2.setSType(sTypeIn1);
    peInDescr2.setSType(sTypeIn3);

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

    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);
View Full Code Here

Examples of eu.admire.dispel.types.AnySType

        if (tokens[i + 4].equals("rest")) {
          tuple.setRest(true);
        } else {
          SType tupleType = null;
          if (tokens[i + 4].equals("Anyany")) {
            tupleType = new AnySType();
          } else {
            tupleType = new PrimitiveSType(tokens[i + 4]);
          }
          tuple.addElement(tokens[i + 3], tupleType);
        }
      }
      peOutputDescriptor.setSType(tuple);
    }
    // checking for ArraySType
    else if (tokens[i + 5] != null) {
      // found ?ListElementIn tokens[9]
      ArraySType array = null;
      // found Tuple element
      if (tokens[i + 7] != null) {
        TupleSType tuple = new TupleSType();
        if (tokens[i + 7].equals("rest")) {
          tuple.setRest(true);
        } else {
          SType arrayType = null;
          if (tokens[i + 8].equals("Anyany")) {
            arrayType = new AnySType();
          } else {
            arrayType = new PrimitiveSType(tokens[i + 8]);
          }
          tuple.addElement(tokens[i + 7], arrayType);
        }
        array = new ArraySType(tuple, Integer.parseInt(tokens[i + 6]));
      } else {
        Integer size = Integer.parseInt(tokens[i + 6]);
        // what is the array Type?
        SType tupleType = null;
        if (tokens[i + 5].equals("Anyany")) {
          tupleType = new AnySType();
        } else {
          tupleType = new PrimitiveSType(tokens[i + 5]);
        }
        array = new ArraySType(tupleType, size);
      }
      peOutputDescriptor.setSType(array);
    }
    // checking for ListSType
    else if (tokens[i + 9] != null) {
      // found ?ListElement tokens[9]
      ListSType list = null;
      if (tokens[i + 10] != null) {
        TupleSType tuple = new TupleSType();
        if (tokens[i + 11].equals("rest")) {
          tuple.setRest(true);
        } else {
          tuple.addElement(tokens[i + 10], new PrimitiveSType(
              tokens[i + 11]));
        }
        list = new ListSType(tuple);
      } else {
        if (tokens[i + 9].equals("Anyany")) {
          list = new ListSType(new AnySType());
        } else {
          list = new ListSType(new PrimitiveSType(tokens[i + 9]));
        }
      }
      peOutputDescriptor.setSType(list);
    } else {
      // default case
      if (tokens[i] != null) {
        if (tokens[i].equals("Anyany")) {
          peOutputDescriptor.setSType(new AnySType());
        } else {
          peOutputDescriptor.setSType(new PrimitiveSType(tokens[i]));
        }
      }
    }
View Full Code Here

Examples of eu.admire.dispel.types.AnySType

        if (tokens[i + 4].equals("rest")) {
          tuple.setRest(true);
        } else {
          SType tupleType = null;
          if (tokens[i + 4].equals("Anyany")) {
            tupleType = new AnySType();
          } else {
            tupleType = new PrimitiveSType(tokens[i + 4]);
          }
          tuple.addElement(tokens[i + 3], tupleType);
        }
      }
      peInputDescriptor.setSType(tuple);
    }
    // checking for ArraySType
    else if (tokens[i + 5] != null) {
      // found ?ListElementIn tokens[9]
      ArraySType array = null;
      // found Tuple element
      if (tokens[i + 7] != null) {
        TupleSType tuple = new TupleSType();
        if (tokens[i + 7].equals("rest")) {
          tuple.setRest(true);
        } else {
          SType tupleType = null;
          if (tokens[i + 8].equals("Anyany")) {
            tupleType = new AnySType();
          } else {
            tupleType = new PrimitiveSType(tokens[i + 8]);
          }
          tuple.addElement(tokens[i + 7], tupleType);
        }
        array = new ArraySType(tuple, Integer.parseInt(tokens[i + 6]));
      } else {
        Integer size = Integer.parseInt(tokens[i + 6]);
        // what is the array Type?
        SType tupleType = null;
        if (tokens[i + 5].equals("Anyany")) {
          tupleType = new AnySType();
        } else {
          tupleType = new PrimitiveSType(tokens[i + 5]);
        }
        array = new ArraySType(tupleType, size);
      }
      peInputDescriptor.setSType(array);
    }
    // checking for ListSType
    else if (tokens[i + 9] != null) {
      // found ?ListElementIn tokens[9]
      ListSType list = null;
      if (tokens[i + 10] != null) {
        TupleSType tuple = new TupleSType();
        if (tokens[i + 10].contains("rest")) {
          tuple.setRest(true);
        } else {
          SType tupleType = null;
          if (tokens[i + 11].equals("Anyany")) {
            tupleType = new AnySType();
          } else {
            tupleType = new PrimitiveSType(tokens[i + 11]);
          }
          tuple.addElement(tokens[i + 10], tupleType);
        }
        list = new ListSType(tuple);
      } else {
        list = new ListSType(new PrimitiveSType(tokens[i + 9]));
      }
      peInputDescriptor.setSType(list);
    } else {
      if (tokens[i] != null) {
        if (tokens[i].equals("Anyany")) {
          peInputDescriptor.setSType(new AnySType());
        } else {
          peInputDescriptor.setSType(new PrimitiveSType(tokens[i]));
        }
      }
    }
View Full Code Here

Examples of eu.admire.registry.ogsadai.rdfactivity.server.update.admire.AnySType

          }
        }
        i++;
      }
      if (sTypeType.equals("any")) {
        sType = new AnySType();
        ((AnySType) sType).setSTypeName(sTypeName);
        i++;
      }
      if (sTypeType.equals("Array")) {
        String arraySize = data[i];
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.