org.shapelogic.streams
Interface StreamProperties

All Known Implementing Classes:
AddListStream, AndListStream, ArrayOutputListStream, BaseCommonNumberedStream, BaseCommonStream, BaseListCommonStream, BaseListFilterStream, BaseListFilterTransformerStream, BaseListIndexedStream1, BaseListStream0, BaseListStream1, BaseListStream2, BaseListStreamList, BaseNumberedStream1, CalcNumberedStream1, IteratorStream, ListCalcIndexStream1, ListCalcStream1, ListFilterCalcStream1, NamedListCalcStream1, NaturalNumberStream, NumericTruthTableStream, PredicateListFilterStream, PrimeNumberStream, SingleListStream, SVGReader, WrappedListStream, XOrListStream

public interface StreamProperties

Properties to be Stream the universal calculation and logic unit.

This is going to replace the current Calc, so this should probably just be renamed to Calc or LazyCalc.
Should I assume that null means absent of value?
That seems a little harsh.

Author:
Sami Badawi

Method Summary
 java.util.Map getContext()
          The context if needed.
 java.lang.String getName()
          If a stream has a name.
 boolean isCached()
          If there is a list that contains all the results.
 boolean isDeterministic()
          Is the result of a calculation deterministic.
 boolean isNullLegalValue()
          If null is a legal value.
 boolean isRandomAccess()
          If you can calculate 1 element independent of other elements.
 

Method Detail

isRandomAccess

boolean isRandomAccess()
If you can calculate 1 element independent of other elements.


isCached

boolean isCached()
If there is a list that contains all the results. I would think that this should always happen for a ListStream, but it could happen for other streams as well.


isDeterministic

boolean isDeterministic()
Is the result of a calculation deterministic.


isNullLegalValue

boolean isNullLegalValue()
If null is a legal value. Otherwise when a null if encountered the stream has ended.


getContext

java.util.Map getContext()
The context if needed. Maybe it would be better to make a link to the task that contains the context.


getName

java.lang.String getName()
If a stream has a name.



Copyright © 2009. All Rights Reserved.