throws 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 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);