Interface AnalysisFilterPlugin

All Superinterfaces:
Plugin
All Known Implementing Classes:
FormulaFilter

public interface AnalysisFilterPlugin
extends Plugin
This is a tagging interface that should be used by all analysis plug-ins that are filtering data only. The plug-in should not create new intensity values or extra values, or some other values. A typical code example uses a FilterBatcher to store the filtered data.
DbControl dc = sc.newDbControl();
try
{
   BioAssaySet source = getSourceBioAssaySet(dc);
   String filterMethod = ... // Something that explains the filter...
   Transformation t = source.newTransformation(job);
   dc.saveItem(t);

   // Create the filtered BioAssaySet in the same datacube and layer
   BioAssaySet child = t.newProduct(null, null, false);
   child.setName("Filter: " + filterMethod);
   dc.saveItem(child);

   // Create the batcher
   FilterBatcher filterBatcher = child.getFilterBatcher();
   while (we_have_more_data)
   {
      filterBatcher.insert(...);
   }
   dc.commit();
}
finally
{
  if (dc != null) dc.close();
}
Version:
2.4
Author:
nicklas
Last modified
$Date: 2008-09-11 22:09:17 +0200 (to, 11 sep 2008) $