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

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.PipeVolumeDirectoryCollectionSource
All Implemented Interfaces:
PipePort.PortListener, ParamViewObserver

public class PipeVolumeDirectoryCollectionSource
extends PipeSource

Iterate through all volumes in directory.

Author:
Blake Lucas

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.PipeModule
PipeModule.PipeListener
 
Field Summary
protected  ParamFile dirParam
          The dir param.
protected  ParamString fileExtension
          The file extension.
protected  java.util.Vector<java.io.File> fileList
          The images.
protected  ParamVolumeCollection fileParam
          The file parameter
protected  ParamString filterExpression
          The filter expression.
protected  ParamOption filterRule
          The filter rule.
protected  ParamBoolean includeParam
          The include param.
protected  int index
          The index.
protected  ParamInteger searchDepth
          The search depth.
 
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
PipeVolumeDirectoryCollectionSource()
          Instantiates a new pipe volume directory surface.
 
Method Summary
 ParamCollection createInputParams()
          Create input parameters for this source.
 ParamCollection createOutputParams()
          Create output parameters for this source.
protected  void findMatchingFiles()
           
 ParamVolumeCollection getOutputParam()
          Get parameter representing the output to this source.
 boolean hasNext()
          Returns true if iterator has more elements.
 boolean iterate()
          Iterate through all parameter values and all child parameter values.
 void reset()
          Reset this source and all child sources.
 
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

dirParam

protected ParamFile dirParam
The dir param.


includeParam

protected ParamBoolean includeParam
The include param.


filterRule

protected ParamOption filterRule
The filter rule.


filterExpression

protected ParamString filterExpression
The filter expression.


fileExtension

protected ParamString fileExtension
The file extension.


searchDepth

protected ParamInteger searchDepth
The search depth.


fileParam

protected ParamVolumeCollection fileParam
The file parameter


fileList

protected transient java.util.Vector<java.io.File> fileList
The images.


index

protected transient int index
The index.

Constructor Detail

PipeVolumeDirectoryCollectionSource

public PipeVolumeDirectoryCollectionSource()
Instantiates a new pipe volume directory surface.

Method Detail

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()
Description copied from class: PipeSource
Iterate through all parameter values and all child parameter values.

Overrides:
iterate in class PipeSource
Returns:
True if there are more elements to iterate through

reset

public void reset()
Description copied from class: PipeSource
Reset this source and all child sources.

Overrides:
reset in class PipeSource

findMatchingFiles

protected void findMatchingFiles()

createInputParams

public ParamCollection createInputParams()
Description copied from class: PipeSource
Create input parameters for this source.

Specified by:
createInputParams in class PipeSource
Returns:
input parameters

createOutputParams

public ParamCollection createOutputParams()
Description copied from class: PipeSource
Create output parameters for this source.

Specified by:
createOutputParams in class PipeSource
Returns:
output parameters

getOutputParam

public ParamVolumeCollection getOutputParam()
Description copied from class: PipeSource
Get parameter representing the output to this source.

Specified by:
getOutputParam in class PipeSource
Returns:
output parameter