org.shapelogic.streams
Class XOrListStream

java.lang.Object
  extended by org.shapelogic.streams.BaseCommonStream<E>
      extended by org.shapelogic.streams.BaseListCommonStream<E>
          extended by org.shapelogic.streams.BaseListStreamList<java.lang.Boolean,java.lang.String>
              extended by org.shapelogic.streams.XOrListStream
All Implemented Interfaces:
java.lang.Iterable<java.lang.String>, java.util.Iterator<java.lang.String>, CalcList<java.lang.Boolean,java.lang.String>, CalcValue<java.lang.String>, ContextGettable, LazyCalc<java.lang.String>, RecursiveContext, InputStreamList<java.lang.Boolean,java.lang.String>, ListStream<java.lang.String>, NumberedStream<java.lang.String>, Stream<java.lang.String>, StreamProperties

public class XOrListStream
extends BaseListStreamList<java.lang.Boolean,java.lang.String>

AndListStream takes a list of Boolean streams and create the and of them.

Author:
Sami Badawi

Field Summary
protected  java.util.List<java.lang.String> _ohNames
          Parallel to the NumberedStream.
 
Fields inherited from class org.shapelogic.streams.BaseListStreamList
_inputStream
 
Fields inherited from class org.shapelogic.streams.BaseListCommonStream
_list
 
Fields inherited from class org.shapelogic.streams.BaseCommonStream
_context, _current, _dirty, _last, _maxLast, _name, _nullLegalValue, _parentContext, _query, _value
 
Constructor Summary
XOrListStream(java.util.List<java.lang.String> ohNames, RecursiveContext recursiveContext)
           
XOrListStream(java.util.List<java.lang.String> ohNames, RecursiveContext recursiveContext, int maxLast)
          Use the ohName to also be the name of the input stream.
XOrListStream(java.util.List<java.lang.String> ohNames, RecursiveContext recursiveContext, java.util.List<NumberedStream<java.lang.Boolean>> inputStream)
           
XOrListStream(java.util.List<java.lang.String> ohNames, RecursiveContext recursiveContext, java.util.List<NumberedStream<java.lang.Boolean>> inputStream, int maxLast)
           
 
Method Summary
 java.lang.String invoke(java.util.List<java.lang.Boolean> input)
           
 
Methods inherited from class org.shapelogic.streams.BaseListStreamList
getDimension, getInput, getInputStream, getList, hasNext, invokeIndex, setLastFromInput, setList
 
Methods inherited from class org.shapelogic.streams.BaseListCommonStream
calcAddNext, get, getCurrentSize, hasNextBase, isCached, isRandomAccess, iterator, next
 
Methods inherited from class org.shapelogic.streams.BaseCommonStream
getContext, getInContext, getIndex, getLast, getMaxLast, getName, getParentContext, getValue, isDeterministic, isDirty, isNullLegalValue, remove, setMaxLast, setNullLegalValue, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.shapelogic.streams.NumberedStream
getIndex, getLast, getMaxLast, setMaxLast
 
Methods inherited from interface org.shapelogic.calculation.LazyCalc
isDirty, setup
 
Methods inherited from interface org.shapelogic.calculation.CalcValue
getValue
 
Methods inherited from interface java.util.Iterator
remove
 

Field Detail

_ohNames

protected java.util.List<java.lang.String> _ohNames
Parallel to the NumberedStream.

Constructor Detail

XOrListStream

public XOrListStream(java.util.List<java.lang.String> ohNames,
                     RecursiveContext recursiveContext,
                     int maxLast)
Use the ohName to also be the name of the input stream.

Parameters:
ohNames -
maxLast -

XOrListStream

public XOrListStream(java.util.List<java.lang.String> ohNames,
                     RecursiveContext recursiveContext)

XOrListStream

public XOrListStream(java.util.List<java.lang.String> ohNames,
                     RecursiveContext recursiveContext,
                     java.util.List<NumberedStream<java.lang.Boolean>> inputStream,
                     int maxLast)

XOrListStream

public XOrListStream(java.util.List<java.lang.String> ohNames,
                     RecursiveContext recursiveContext,
                     java.util.List<NumberedStream<java.lang.Boolean>> inputStream)
Method Detail

invoke

public java.lang.String invoke(java.util.List<java.lang.Boolean> input)


Copyright © 2009. All Rights Reserved.