org.knime.base.data.bitvector
Class BitVectorCellFactory

java.lang.Object
  extended by org.knime.core.data.container.AbstractCellFactory
      extended by org.knime.core.data.container.SingleCellFactory
          extended by org.knime.base.data.bitvector.BitVectorCellFactory
All Implemented Interfaces:
CellFactory
Direct Known Subclasses:
BitVectorColumnCellFactory, Numeric2BitVectorMeanCellFactory, Numeric2BitVectorThresholdCellFactory

public abstract class BitVectorCellFactory
extends SingleCellFactory

Base class for all cell factories converting strings to bitvectors.

Author:
Fabian Dill, University of Konstanz

Constructor Summary
BitVectorCellFactory(DataColumnSpec columnSpec)
           
 
Method Summary
 int getNrOfProcessedRows()
          Returns the number of processed rows.
abstract  int getNumberOfNotSetBits()
           
abstract  int getNumberOfSetBits()
           
 void incrementNrOfRows()
          Increments the number of processed rows.
abstract  boolean wasSuccessful()
           
 
Methods inherited from class org.knime.core.data.container.SingleCellFactory
getCell, getCells
 
Methods inherited from class org.knime.core.data.container.AbstractCellFactory
getColumnSpecs, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitVectorCellFactory

public BitVectorCellFactory(DataColumnSpec columnSpec)
Parameters:
columnSpec - the column spec of the new column
Method Detail

incrementNrOfRows

public void incrementNrOfRows()
Increments the number of processed rows.


getNrOfProcessedRows

public int getNrOfProcessedRows()
Returns the number of processed rows.

Returns:
the number of processed rows.

getNumberOfSetBits

public abstract int getNumberOfSetBits()
Returns:
the number of set bits.

getNumberOfNotSetBits

public abstract int getNumberOfNotSetBits()
Returns:
the number of not set bits.

wasSuccessful

public abstract boolean wasSuccessful()
Returns:
true if at least one conversion was successful, false otherwise.


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.