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

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.PipeFileCollectionSource
All Implemented Interfaces:
PipePort.PortListener, ParamViewObserver
Direct Known Subclasses:
PipeSurfaceCollectionSource, PipeVolumeCollectionSource

public class PipeFileCollectionSource
extends PipeSource

Iterate through list of files.

Author:
Blake Lucas

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.PipeModule
PipeModule.PipeListener
 
Field Summary
protected  ParamFileCollection filecollection
          The filecollection.
protected  ParamFile fileParam
          The file param.
protected  int index
          The index.
protected  java.util.List<java.io.File> selection
          The selection.
 
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
PipeFileCollectionSource()
          Default constructor.
 
Method Summary
 ParamCollection createInputParams()
          Create input parameters.
 ParamCollection createOutputParams()
          Create output parameters.
 ParamFile getOutputParam()
          Get output parameter.
 boolean hasNext()
          Returns true if iterator has more elements.
 boolean iterate()
          Iterate through files.
 void reset()
          Reset iterator.
 
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.PipeSource
createModuleCell, disconnect, getChildPort, 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

filecollection

protected ParamFileCollection filecollection
The filecollection.


fileParam

protected ParamFile fileParam
The file param.


selection

protected transient java.util.List<java.io.File> selection
The selection.


index

protected transient int index
The index.

Constructor Detail

PipeFileCollectionSource

public PipeFileCollectionSource()
Default constructor.

Method Detail

createInputParams

public ParamCollection createInputParams()
Create input parameters.

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

createOutputParams

public ParamCollection createOutputParams()
Create output parameters.

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

getOutputParam

public ParamFile getOutputParam()
Get output parameter.

Specified by:
getOutputParam in class PipeSource
Returns:
the output param

hasNext

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

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

iterate

public boolean iterate()
Iterate through files.

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

reset

public void reset()
Reset iterator.

Overrides:
reset in class PipeSource