Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.joone.util
Class ColumnSelectorPlugIn  view ColumnSelectorPlugIn download ColumnSelectorPlugIn.java

java.lang.Object
  extended byorg.joone.util.AbstractConverterPlugIn
      extended byorg.joone.util.ConverterPlugIn
          extended byorg.joone.util.ColumnSelectorPlugIn
All Implemented Interfaces:
PlugInListener, java.io.Serializable

public class ColumnSelectorPlugIn
extends ConverterPlugIn

Certain plug-ins change the number of columns during their conversion, for example the ToBinaryPlugin increases the number of columns. This plug in can be used to select certain columns from all available columns at that moment. It just uses an advanced column selector as StreamInputSynapse and all plug-ins do, but this plug-in does not work on certain columns as most plug-ins do, but it selects columns like the StreamInputSynapse does.


Field Summary
private static org.joone.log.ILogger log
          The logger for this class.
 
Fields inherited from class org.joone.util.ConverterPlugIn
 
Fields inherited from class org.joone.util.AbstractConverterPlugIn
pluginListeners
 
Constructor Summary
ColumnSelectorPlugIn()
          Creates a new instance of ColumnSelectorPlugIn
ColumnSelectorPlugIn(java.lang.String anAdvancedSerieSelector)
          Creates a new instance of ColumnSelectorPlugIn
 
Method Summary
protected  boolean applyOnRows()
          Applies the conversion on the patterns contained by AbstractConverterPlugIn.InputVector 55 on all the rows.
protected  boolean convert(int serie)
          Applies the conversion on the Nth serie of the buffered pattern data.
 
Methods inherited from class org.joone.util.ConverterPlugIn
addInputPluginListener, isApplyEveryCycle, newCycle, removeInputPluginListener, setApplyEveryCycle
 
Methods inherited from class org.joone.util.AbstractConverterPlugIn
addPlugIn, addPlugInListener, apply, applyOnColumns, cascade, check, convertPatterns, dataChanged, fireDataChanged, getAdvancedSerieSelector, getInputVector, getName, getNextPlugIn, getPluginListeners, getSerieIndexNumber, getSerieSelected, getValuePoint, isConnected, removeAllPlugIns, removePlugInListener, setAdvancedSerieSelector, setConnected, setInputVector, setName, setNextPlugin, setNextPlugIn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.joone.log.ILogger log
The logger for this class.

Constructor Detail

ColumnSelectorPlugIn

public ColumnSelectorPlugIn()
Creates a new instance of ColumnSelectorPlugIn


ColumnSelectorPlugIn

public ColumnSelectorPlugIn(java.lang.String anAdvancedSerieSelector)
Creates a new instance of ColumnSelectorPlugIn

Method Detail

convert

protected boolean convert(int serie)
Description copied from class: AbstractConverterPlugIn
Applies the conversion on the Nth serie of the buffered pattern data. The method is abstract and should be overridden by the implementing class. Implementing classes can obtain the input patterns by calling the AbstractConverterPlugIn.getInputVector() 55 method. The result is a Vector of Pattern objects which this method should use by converting the requested serie.

Specified by:
convert in class AbstractConverterPlugIn

applyOnRows

protected boolean applyOnRows()
Description copied from class: AbstractConverterPlugIn
Applies the conversion on the patterns contained by AbstractConverterPlugIn.InputVector 55 on all the rows. Override this empty method to apply any change to the order of the input vector's rows.

Overrides:
applyOnRows in class AbstractConverterPlugIn