Examples of InvalidActivityInputsException


Examples of uk.org.ogsadai.activity.InvalidActivityInputsException

        
         // set up block reader for data input
         BlockReader data = getInput(INPUT_DATA);
         if (data == null)
         {
             throw new InvalidActivityInputsException(1, INPUT_DATA);
         }  
         ActivityInput dataInput = new TupleListActivityInput(INPUT_DATA);
         dataInput.setBlockReader(data);
         inputs.add(dataInput);
        
         BlockReader priorities = getInput(INPUT_PRIORITIES);
         if (priorities == null)
         {
             throw new InvalidActivityInputsException(1, INPUT_PRIORITIES);
         }  
         ActivityInput prioritiesInput = new TypedListActivityInput(INPUT_PRIORITIES, Object.class);
         prioritiesInput.setBlockReader(priorities);
         inputs.add(prioritiesInput);
        
View Full Code Here

Examples of uk.org.ogsadai.activity.InvalidActivityInputsException

          System.out.println("StreamHarvesterActivity getting inputs...");
          List stationInputs = getInputs(INPUT_DATA);
          System.out.println(stationInputs.size());
       
          if(stationInputs==null)
            throw new InvalidActivityInputsException(0,INPUT_DATA);
            mInputs =new ActivityInput[stationInputs.size()];
            for (int i = 0; i < mInputs.length; i++)
            {
              mInputs[i] = new TypedListActivityInput(INPUT_DATA,String.class);
              mInputs[i].setBlockReader((BlockReader) stationInputs.get(i));
View Full Code Here

Examples of uk.org.ogsadai.activity.InvalidActivityInputsException

       
        // set up block reader for data input
        BlockReader data = getInput(INPUT_DATA);
        if (data == null)
        {
            throw new InvalidActivityInputsException(1, INPUT_DATA);
        }  
        ActivityInput dataInput = new TupleListActivityInput(INPUT_DATA);
        dataInput.setBlockReader(data);
        inputs.add(dataInput);

        // set up block reader for options input
        BlockReader options = getInput(INPUT_OPTIONS);

        TypedOptionalActivityInput optionsInput =
            new TypedOptionalActivityInput(INPUT_OPTIONS, Object.class, DEFAULT_OPTIONS);
        optionsInput.setBlockReader(options);
        inputs.add(optionsInput);
       
        // set up block reader for options input
        BlockReader algorithm = getInput(INPUT_ALGORITHM_CLASS);
       
        TypedOptionalActivityInput algorithmInput =
            new TypedOptionalActivityInput(INPUT_ALGORITHM_CLASS, Object.class, DEFAULT_ALGORITHM);
        algorithmInput.setBlockReader(algorithm);
        inputs.add(algorithmInput);
       
        // set up block reader for indexes of nominal values columns
        BlockReader indexes = getInput(INPUT_COLUMN_INDICES);
        if (indexes == null)
        {
            throw new InvalidActivityInputsException(1, INPUT_COLUMN_INDICES);
        }  
        ActivityInput nomValIndexesInput = new TypedListActivityInput(INPUT_COLUMN_INDICES, Object.class);
        nomValIndexesInput.setBlockReader(indexes);
        inputs.add(nomValIndexesInput);
       
View Full Code Here

Examples of uk.org.ogsadai.activity.InvalidActivityInputsException

        
         // set up block reader for data input
         BlockReader data = getInput(INPUT_DATA);
         if (data == null)
         {
             throw new InvalidActivityInputsException(1, INPUT_DATA);
         }  
         ActivityInput dataInput = new TupleListActivityInput(INPUT_DATA);
         dataInput.setBlockReader(data);
         inputs.add(dataInput);
        
         BlockReader priorities = getInput(INPUT_PRIORITIES);
         if (priorities == null)
         {
             throw new InvalidActivityInputsException(1, INPUT_PRIORITIES);
         }  
         ActivityInput prioritiesInput = new TypedListActivityInput(INPUT_PRIORITIES, Object.class);
         prioritiesInput.setBlockReader(priorities);
         inputs.add(prioritiesInput);
        
View Full Code Here

Examples of uk.org.ogsadai.activity.InvalidActivityInputsException

    List<ActivityInput> inputs = new ArrayList<ActivityInput>();

    // set up block reader for data input
    BlockReader data = getInput(INPUT_DATA);
    if (data == null) {
      throw new InvalidActivityInputsException(1, INPUT_DATA);
    }
    ActivityInput dataInput = new TupleListActivityInput(INPUT_DATA);
    dataInput.setBlockReader(data);
    inputs.add(dataInput);

    // set up block reader for class index input
    BlockReader classIndex = getInput(INPUT_CLASS_INDEX);
    if (classIndex == null) {
      throw new InvalidActivityInputsException(1, INPUT_CLASS_INDEX);
    }
    ActivityInput classIndexInput = new TypedActivityInput(
        INPUT_CLASS_INDEX, Object.class);
    classIndexInput.setBlockReader(classIndex);
    inputs.add(classIndexInput);

    // set up block reader for indexes of nominal values columns
    BlockReader indexes = getInput(INPUT_COLUMN_INDICES);
    if (indexes == null) {
      throw new InvalidActivityInputsException(1, INPUT_COLUMN_INDICES);
    }
    ActivityInput nomValIndexesInput = new TypedListActivityInput(
        INPUT_COLUMN_INDICES, Object.class);
    nomValIndexesInput.setBlockReader(indexes);
    inputs.add(nomValIndexesInput);
View Full Code Here

Examples of uk.org.ogsadai.activity.InvalidActivityInputsException

       
        // set up block reader for data input
        BlockReader data = getInput(INPUT_DATA);
        if (data == null)
        {
            throw new InvalidActivityInputsException(1, INPUT_DATA);
        }  
        ActivityInput dataInput = new TupleListActivityInput(INPUT_DATA);
        dataInput.setBlockReader(data);
        inputs.add(dataInput);
       
        // set up block reader for class index input
        BlockReader classIndex = getInput(INPUT_CLASS_INDEX);
        if (classIndex == null)
        {
            throw new InvalidActivityInputsException(1, INPUT_CLASS_INDEX);
        }  
        ActivityInput classIndexInput = new TypedActivityInput(INPUT_CLASS_INDEX, Object.class);
        classIndexInput.setBlockReader(classIndex);
        inputs.add(classIndexInput);
       
        // set up block reader for options  input

        BlockReader options = getInput(INPUT_OPTIONS);
        TypedOptionalActivityInput optionsInput = new TypedOptionalActivityInput(INPUT_OPTIONS, Object.class);
        optionsInput.setBlockReader(options);
        inputs.add(optionsInput);
       
        // set up block reader for indexes of nominal values columns
        BlockReader indexes = getInput(INPUT_COLUMN_INDICES);
        if (indexes == null)
        {
            throw new InvalidActivityInputsException(1, INPUT_COLUMN_INDICES);
        }  
        ActivityInput nomValIndexesInput = new TypedListActivityInput(INPUT_COLUMN_INDICES, Object.class);
        nomValIndexesInput.setBlockReader(indexes);
        inputs.add(nomValIndexesInput);
       
View Full Code Here

Examples of uk.org.ogsadai.activity.InvalidActivityInputsException

       
        // set up block reader for data input
        BlockReader data = getInput(INPUT_DATA);
        if (data == null)
        {
            throw new InvalidActivityInputsException(1, INPUT_DATA);
        }  
        ActivityInput dataInput = new TupleListActivityInput(INPUT_DATA);
        dataInput.setBlockReader(data);
        inputs.add(dataInput);
View Full Code Here

Examples of uk.org.ogsadai.activity.InvalidActivityInputsException

       
        // set up block reader for data input
        BlockReader data = getInput(INPUT_DATA);
        if (data == null)
        {
            throw new InvalidActivityInputsException(1, INPUT_DATA);
        }  
        ActivityInput dataInput = new TupleListActivityInput(INPUT_DATA);
        dataInput.setBlockReader(data);
        inputs.add(dataInput);
View Full Code Here

Examples of uk.org.ogsadai.activity.InvalidActivityInputsException

    {
        TypedActivityInput input = new TypedActivityInput(INPUT_LANGUAGE, String.class);
        BlockReader blockReader = mInputs.get(INPUT_LANGUAGE);
        if (blockReader == null)
        {
            throw new InvalidActivityInputsException(1, INPUT_LANGUAGE);
        }
        input.setBlockReader(blockReader);
        Object block = input.read();
        return (block == ControlBlock.NO_MORE_DATA) ? null : (String)block;
    }
View Full Code Here

Examples of uk.org.ogsadai.activity.InvalidActivityInputsException

               ActivityTerminatedException
    {
        BlockReader blockReader = mInputs.get(INPUT_SCRIPT);
        if (blockReader == null)
        {
            throw new InvalidActivityInputsException(1, INPUT_SCRIPT);
        }
        TypedActivityInput input = new TypedActivityInput(INPUT_SCRIPT, String.class);
        input.setBlockReader(blockReader);
        Object block = input.read();
        return (block == ControlBlock.NO_MORE_DATA) ? null : (String)block;
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.