org.debellor.core.cell
Class OperatorFromCell

java.lang.Object
  extended by org.debellor.core.cell.OperatorFromCell

public class OperatorFromCell
extends java.lang.Object

Wrapper class that lets the cell to be used like a simple input-output operator that can be applied to an input sample in order to produce an output sample. If the cell cannot be treated in this way, because it does not produce exactly one output sample for every input sample, exception is thrown during execution.

Author:
Marcin Wojnarski

Constructor Summary
OperatorFromCell()
           
 
Method Summary
 Sample applyTo(Sample in)
           
 void closeCell()
           
 void setCell(Cell cell)
           
 void setType(Sample.SampleType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperatorFromCell

public OperatorFromCell()
Method Detail

setType

public void setType(Sample.SampleType type)

setCell

public void setCell(Cell cell)
             throws DebellorException
Throws:
DebellorException

applyTo

public Sample applyTo(Sample in)
               throws DebellorException
Throws:
DebellorException

closeCell

public void closeCell()
               throws DebellorException
Throws:
DebellorException