org.shapelogic.streams
Interface StreamProperties

All Known Implementing Classes:
AddListStream, AndListStream, BaseListCommonStream, BaseListFilterStream, BaseListFilterTransformerStream, BaseListIndexedStream1, BaseListStream0, BaseListStream1, BaseListStream2, BaseListStreamList, ListCalcIndexStream1, ListCalcStream1, ListFilterCalcStream1, NaturalNumberStream, PredicateListFilterStream, PrimeNumberStream, SingleListStream, SVGReader, 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()
          Is the result of a calculation cached.
 boolean isContextBased()
          If it needs a context.
 boolean isDeterministic()
          Is the result of a calculation deterministic.
 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()
Is the result of a calculation cached.


isDeterministic

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


isContextBased

boolean isContextBased()
If it needs a context.


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 © 2008. All Rights Reserved.