de.lmu.ifi.dbs.elki.visualization.visualizers.visunproj
Class CurveVisFactory.CurveFilter

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.utilities.iterator.AbstractFilteredIterator<IterableResult<?>,IterableResult<DoubleDoublePair>>
      extended by de.lmu.ifi.dbs.elki.visualization.visualizers.visunproj.CurveVisFactory.CurveFilter
All Implemented Interfaces:
IterableIterator<IterableResult<DoubleDoublePair>>, Iterable<IterableResult<DoubleDoublePair>>, Iterator<IterableResult<DoubleDoublePair>>
Enclosing class:
CurveVisFactory

 class CurveVisFactory.CurveFilter
extends AbstractFilteredIterator<IterableResult<?>,IterableResult<DoubleDoublePair>>
implements IterableIterator<IterableResult<DoubleDoublePair>>

Filter to only retrieve double-double-pair results.


Field Summary
(package private)  Iterator<IterableResult<?>> parent
          Parent iterator to use
 
Constructor Summary
CurveVisFactory.CurveFilter(Iterator<IterableResult<?>> parent)
          Constructor.
 
Method Summary
protected  Iterator<IterableResult<?>> getParentIterator()
          Get an iterator for the actual data.
 Iterator<IterableResult<DoubleDoublePair>> iterator()
           
protected  IterableResult<DoubleDoublePair> testFilter(IterableResult<?> nextobj)
          Test the filter predicate for a new object.
 
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.iterator.AbstractFilteredIterator
hasNext, init, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Field Detail

parent

Iterator<IterableResult<?>> parent
Parent iterator to use

Constructor Detail

CurveVisFactory.CurveFilter

public CurveVisFactory.CurveFilter(Iterator<IterableResult<?>> parent)
Constructor.

Parameters:
parent - Parent iterator to decorate.
Method Detail

getParentIterator

protected Iterator<IterableResult<?>> getParentIterator()
Description copied from class: AbstractFilteredIterator
Get an iterator for the actual data. Used in initialization.

Specified by:
getParentIterator in class AbstractFilteredIterator<IterableResult<?>,IterableResult<DoubleDoublePair>>
Returns:
iterator

testFilter

protected IterableResult<DoubleDoublePair> testFilter(IterableResult<?> nextobj)
Description copied from class: AbstractFilteredIterator
Test the filter predicate for a new object.

Specified by:
testFilter in class AbstractFilteredIterator<IterableResult<?>,IterableResult<DoubleDoublePair>>
Parameters:
nextobj - Object to test
Returns:
cast object when true, null otherwise

iterator

public Iterator<IterableResult<DoubleDoublePair>> iterator()
Specified by:
iterator in interface Iterable<IterableResult<DoubleDoublePair>>

Release 0.4.0 (2011-09-20_1324)