pl.edu.agh.cast.data.preprocessing
Interface IImportPreprocessor


public interface IImportPreprocessor

Interface for import preprocessors. Preprocessing is executed after importing data and before converting it to data set.

Author:
AGH CAST Team

Method Summary
 List<? extends IPreprocessingItem> analyzeData(TabularData data, Map<Integer,Integer> mapping)
          Analyzes input data and returns list of possible changes types.
 void applyChanges(List<? extends IPreprocessingItem> items, IRawDataObserver dataObserver)
          Apply changes to given input data.
 String getDescription()
          Returns preprocessing description.
 String getName()
          Return preprocessing name.
 Map<DataCell,String> getProposedChanges(Collection<? extends IPreprocessingItem> items)
          Returns proposed changes for items.
 void undoChanges(List<? extends IPreprocessingItem> items, IRawDataObserver dataObserver)
          Undo changes for specified items (only if items was applied before).
 

Method Detail

analyzeData

List<? extends IPreprocessingItem> analyzeData(TabularData data,
                                               Map<Integer,Integer> mapping)
Analyzes input data and returns list of possible changes types.

Parameters:
data - input data
mapping - mapping of model column indexes to a particular data column
Returns:
list of possible changes types

applyChanges

void applyChanges(List<? extends IPreprocessingItem> items,
                  IRawDataObserver dataObserver)
Apply changes to given input data.

Parameters:
items - the items for import preprocessing
dataObserver - the observer for raw data monitors

undoChanges

void undoChanges(List<? extends IPreprocessingItem> items,
                 IRawDataObserver dataObserver)
Undo changes for specified items (only if items was applied before).

Parameters:
items - the items for import preprocessing
dataObserver - the observer for raw data monitors

getProposedChanges

Map<DataCell,String> getProposedChanges(Collection<? extends IPreprocessingItem> items)
Returns proposed changes for items.

Parameters:
items - the items for import preprocessing
Returns:
DataCell objects with proposed changes mapped prefixes.

getName

String getName()
Return preprocessing name.

Returns:
preprocessing name

getDescription

String getDescription()
Returns preprocessing description.

Returns:
preprocessing description, if no description returns empty string


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.