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

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
              extended by edu.jhu.ece.iacl.jist.pipeline.src.PipeSelectionListSource
All Implemented Interfaces:
PipePort.PortListener, ParamViewObserver

public class PipeSelectionListSource
extends PipeListSource

A parameter that allows the user to input a number of options from a text file

Author:
John Bogovic

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.PipeModule
PipeModule.PipeListener
 
Field Summary
protected  ParamFile fileParam
          The file param.
protected  ParamOption option
          The option.
protected  java.util.HashMap<java.lang.String,java.lang.Integer> optionMap
          The Map
 
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.src.PipeListSource
data, endEntry, index, offset, startEntry
 
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
PipeSelectionListSource()
          Instantiates a new pipe selection List source.
 
Method Summary
 void connectAction(PipePort port)
          Listen for connection event to occur on a port.
 ParamCollection createInputParams()
          Create input parameters.
 ParamCollection createOutputParams()
          Create output parameters for this source.
 void disconnectAction(PipePort owner, PipePort child, PipeConnector wire)
          Listen for disconnect event to occur on a port.
 ParamOption getOutputParam()
          Get parameter representing the output to this source.
protected  java.lang.String getValue(int i)
          Get list value.
 void reset()
          Reset iterator.
protected  void setValue(java.lang.Object obj)
          Set list value.
 
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.src.PipeListSource
hasNext, iterate
 
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, 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

option

protected ParamOption option
The option.


fileParam

protected ParamFile fileParam
The file param.


optionMap

protected transient java.util.HashMap<java.lang.String,java.lang.Integer> optionMap
The Map

Constructor Detail

PipeSelectionListSource

public PipeSelectionListSource()
Instantiates a new pipe selection List source.

Method Detail

createInputParams

public ParamCollection createInputParams()
Description copied from class: PipeListSource
Create input parameters.

Overrides:
createInputParams in class PipeListSource
Returns:
the param collection

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 ParamOption getOutputParam()
Description copied from class: PipeSource
Get parameter representing the output to this source.

Specified by:
getOutputParam in class PipeSource
Returns:
output parameter

getValue

protected java.lang.String getValue(int i)
Description copied from class: PipeListSource
Get list value.

Specified by:
getValue in class PipeListSource
Parameters:
i - the i
Returns:
the value

setValue

protected void setValue(java.lang.Object obj)
Description copied from class: PipeListSource
Set list value.

Specified by:
setValue in class PipeListSource
Parameters:
obj - the obj

reset

public void reset()
Reset iterator.

Overrides:
reset in class PipeListSource

connectAction

public void connectAction(PipePort port)
Description copied from class: PipeModule
Listen for connection event to occur on a port.

Specified by:
connectAction in interface PipePort.PortListener
Overrides:
connectAction in class PipeModule
Parameters:
port - the owner

disconnectAction

public void disconnectAction(PipePort owner,
                             PipePort child,
                             PipeConnector wire)
Description copied from class: PipeModule
Listen for disconnect event to occur on a port.

Specified by:
disconnectAction in interface PipePort.PortListener
Overrides:
disconnectAction in class PipeModule
Parameters:
owner - the owner
child - the child
wire - the wire