Package uk.org.ogsadai.activity.io

Examples of uk.org.ogsadai.activity.io.TypedActivityInput


    @Override
    protected ActivityInput[] getIterationInputs()
    {
        return new ActivityInput[] {
                new TypedActivityInput(INPUT_GATEWAY_URI, String.class),
                new TypedActivityInput(INPUT_RESULT_NAME, String.class),
                new TypedOptionalActivityInput(INPUT_POLL_INTERVAL,
                        Number.class, 500) };
    }
View Full Code Here


     */
    protected ActivityInput[] getIterationInputs()
    {
        return new ActivityInput[] {
            new TupleListActivityInput(INPUT_DATA),
            new TypedActivityInput(INPUT_SAMPLE_SIZE, Integer.class),
            new TypedActivityInput(INPUT_SAMPLE_REPEAT, Integer.class)};
    }
View Full Code Here

   
  @Override
    protected ActivityInput[] getIterationInputs()
    {
        return new ActivityInput[] {
                new TypedActivityInput(INPUT_SUPPORT, Double.class),
                new TupleListActivityInput(INPUT_DATA)
        };
    }
View Full Code Here

    protected ActivityInput[] getIterationInputs()
    {
        return new ActivityInput[] {
             new TupleListActivityInput(INPUT_DATA1),
             new TupleListActivityInput(INPUT_DATA2),
             new TypedActivityInput(INPUT_SCRIPT, String.class),
             new TypedActivityInput(INPUT_LANGUAGE, String.class)
        };
    }
View Full Code Here

    @Override
    protected ActivityInput[] getIterationInputs()
    {
        return new ActivityInput[] {
             new TupleListActivityInput(INPUT_DATA),
             new TypedActivityInput(INPUT_SCRIPT, String.class),
             new TypedActivityInput(INPUT_LANGUAGE, String.class)
        };
    }
View Full Code Here

    private String readLanguage()
        throws ActivityUserException,
               ActivityProcessingException,
               ActivityTerminatedException
    {
        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

    private DataCacheWriter mWriter;

    protected ActivityInput[] getIterationInputs()
    {
        return new ActivityInput[] {
                new TypedActivityInput(DATA_INPUT, Object.class)
        };
    }
View Full Code Here

        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;

// TODO When ReaderActivityInput supports Strings we can replace the above
//       
//        ReaderActivityInput input = new ReaderActivityInput(INPUT_SCRIPT);
View Full Code Here

//___________________________________________________________________________________________________________________________________________ 
    @Override
    protected ActivityInput[] getIterationInputs()
    {
        return new ActivityInput[] {
                new TypedActivityInput(INPUT_SUPPORT, Double.class),
                new TupleListActivityInput(INPUT_DATA)
        };
    }
View Full Code Here

    @Override
    protected ActivityInput[] getIterationInputs()
    {
        return new ActivityInput[] {
            new TypedActivityInput(INPUT_LINEAR_INDEX, Number.class),
            new TupleListActivityInput(INPUT_DATA)
        };
    }
View Full Code Here

TOP

Related Classes of uk.org.ogsadai.activity.io.TypedActivityInput

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.