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

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

public class PipeToggleSource
extends PipeSource

Toggle between true/false.

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 end
          The end.
protected  int inc
          The inc.
protected  int start
          The start.
protected  int val
          The val.
protected  ParamBoolean valParam
          The val param.
 
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
PipeToggleSource()
          Default constructor.
 
Method Summary
 ParamCollection createInputParams()
          Create input parameters.
 ParamCollection createOutputParams()
          Create output parameters.
 ParamBoolean getOutputParam()
          Get output parameter.
 boolean hasNext()
          Returns true if iterator has more elements.
 boolean iterate()
          Iterate.
 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

start

protected int start
The start.


end

protected int end
The end.


inc

protected int inc
The inc.


val

protected int val
The val.


valParam

protected ParamBoolean valParam
The val param.

Constructor Detail

PipeToggleSource

public PipeToggleSource()
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 ParamBoolean 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.

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

reset

public void reset()
Reset iterator.

Overrides:
reset in class PipeSource