edu.jhu.ece.iacl.jist.pipeline.src
Class PipeListSource

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.pipeline.PipeModule
      extended by edu.jhu.ece.iacl.jist.pipeline.PipeSource
          extended by edu.jhu.ece.iacl.jist.pipeline.src.PipeListSource
All Implemented Interfaces:
PipePort.PortListener, ParamViewObserver
Direct Known Subclasses:
PipeDoubleListSource, PipeFileCollectionListSource, PipeFileListSource, PipeIntegerListSource, PipePointListSource, PipeSelectionListSource, PipeStringListSource, PipeSurfaceCollectionListSource, PipeSurfaceListSource, PipeVolumeCollectionListSource, PipeVolumeListSource

public abstract class PipeListSource
extends PipeSource

Iterate through list of parameters.

Author:
Blake Lucas

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.PipeModule
PipeModule.PipeListener
 
Field Summary
protected  java.lang.Object[][] data
          The data.
protected  ParamInteger endEntry
          The end entry.
protected  ParamFile fileParam
          The file param.
protected  int index
          The index.
protected  ParamInteger offset
          The offset.
protected  ParamInteger startEntry
          The start entry.
 
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.PipeSource
childPort, isReset, parentPort
 
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.PipeModule
bounds, cell, currentContext, inputHash, inputParams, inputPorts, label, listeners, name, outputHash, outputParams, outputPorts
 
Constructor Summary
PipeListSource()
          Default constructor.
 
Method Summary
 ParamCollection createInputParams()
          Create input parameters.
protected abstract  java.lang.Object getValue(int i)
          Get list value.
 boolean hasNext()
          Returns true if iterator has more values.
 boolean iterate()
          Iterate.
 void reset()
          Reset iterator.
protected abstract  void setValue(java.lang.Object obj)
          Set list value.
 
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.PipeSource
createModuleCell, createOutputParams, disconnect, getChildPort, getOutputParam, getParentPort, getRoot, init, isRoot
 
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.PipeModule
addListener, connectAction, disconnectAction, forward, getAncestors, getAncestors, getBounds, getChildren, getCurrentContext, getDescendants, getDescendants, getInputHash, getInputParams, getInputPorts, getLabel, getListeners, getModuleCell, getName, getOutputHash, getOutputParams, getOutputPorts, getParents, isAncestorOf, isDescendantOf, push, removeAllListeners, removeListener, setBounds, setCurrentContext, setLabel, setModuleCell, setName, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileParam

protected ParamFile fileParam
The file param.


offset

protected ParamInteger offset
The offset.


startEntry

protected ParamInteger startEntry
The start entry.


endEntry

protected ParamInteger endEntry
The end entry.


data

protected transient java.lang.Object[][] data
The data.


index

protected transient int index
The index.

Constructor Detail

PipeListSource

public PipeListSource()
Default constructor.

Method Detail

createInputParams

public ParamCollection createInputParams()
Create input parameters.

Specified by:
createInputParams in class PipeSource
Returns:
the param collection

getValue

protected abstract java.lang.Object getValue(int i)
Get list value.

Parameters:
i - the i
Returns:
the value

hasNext

public boolean hasNext()
Returns true if iterator has more values.

Overrides:
hasNext in class PipeSource
Returns:
true, if checks for next

iterate

public boolean iterate()
Iterate.

Overrides:
iterate in class PipeSource
Returns:
true, if iterate

reset

public void reset()
Reset iterator.

Overrides:
reset in class PipeSource

setValue

protected abstract void setValue(java.lang.Object obj)
Set list value.

Parameters:
obj - the obj