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

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

public class PipeSelectionExternalSource
extends PipeExternalSource

Source to select multiple options.

Author:
Blake Lucas

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.PipeModule
PipeModule.PipeListener
 
Field Summary
protected  int index
          The index.
protected  java.util.List<java.lang.String> 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
PipeSelectionExternalSource()
          Instantiates a new pipe selection source.
 
Method Summary
 void connectAction(PipePort port)
          Update selection options when a new connector is added.
 ParamCollection createInputParams()
          Create input parameters.
 ParamCollection createOutputParams()
          Create output parameters.
 void disconnectAction(PipePort owner, PipePort child, PipeConnector wire)
          Update selection options if connector is removed.
 ParamOption getOutputParam()
          Get output parameter.
 
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.src.PipeExternalSource
getDefaultParam, hasNext, iterate, reset
 
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

selection

protected transient java.util.List<java.lang.String> selection
The selection.


index

protected transient int index
The index.

Constructor Detail

PipeSelectionExternalSource

public PipeSelectionExternalSource()
Instantiates a new pipe selection source.

Method Detail

connectAction

public void connectAction(PipePort port)
Update selection options when a new connector is added.

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

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

disconnectAction

public void disconnectAction(PipePort owner,
                             PipePort child,
                             PipeConnector wire)
Update selection options if connector is removed.

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

getOutputParam

public ParamOption getOutputParam()
Get output parameter.

Overrides:
getOutputParam in class PipeExternalSource
Returns:
the output param