org.shapelogic.calculation
Interface LazyCalc<T>

All Superinterfaces:
CalcValue<T>
All Known Subinterfaces:
Accumulator<In,Out>, CalcInContext<K,V>, CalcInvoke<T>, CartesianIndex, FilterCalcStream1<E,Out>, FilterStream<E>, FilterTransformerStream<E,Out>, Improver<S>, ListFilterStream<E>, ListStream<E>, NumberedStream<E>, ObjectAnnotator<S>, PolygonImprover, Stream<E>, Task<T>
All Known Implementing Classes:
AddListStream, AndListStream, AndTask, BaseAccumulator, BaseCalcInContext, BaseListCommonStream, BaseListFilterStream, BaseListFilterTransformerStream, BaseListIndexedStream1, BaseListStream0, BaseListStream1, BaseListStream2, BaseListStreamList, BaseStream2, BaseTask, BooleanTask, CalcAndSetTask, CalcAndSetTasks, CartesianIndex2, ChainCodeHandler, CircleFinder, CountCollectionGreaterTask, CountCollectionTask, ExistTask, ExistTasks, FilterCountGreaterTask, FilterCountTask, FilterPolygonForSmallLines, FunctionCalcInvoke, FunctionEvalCalcInvoke, IteratorStream, LineProperties, ListCalcIndexStream1, ListCalcStream1, ListFilterCalcStream1, MaxAccumulator, MultiLine, MultiLineDirectionAnnotator, MultiLinePolygon, NamedListStream, NamedNumberedStream, NamedNumberedStreamLazySetup, NaturalNumberStream, NumericGreaterTask, ParametricRuleTask, PixelTypeCalculator, Polygon, PolygonAnnotator, PolygonEndPointAdjuster, PredicateListFilterStream, PrimeNumberStream, RootTask, SimpleNumericTask, SimpleTask, SingleListStream, SumAccumulator, SVGReader, WrappedListStream, XOrListStream, XOrTask

public interface LazyCalc<T>
extends CalcValue<T>

Interface for calculations with a dirty and setup concept.

Author:
Sami Badawi

Method Summary
 boolean isDirty()
          When dirty is false that means that the calculated value can be used
 void setup()
          Currently not super well define used for 2 purposes: Reset: called from the outside if you want to reuse it init: Called from the inside when calculation start to have everything setup maybe the semantic could work for both? TODO: This should be separated better.
 
Methods inherited from interface org.shapelogic.calculation.CalcValue
getValue
 

Method Detail

isDirty

boolean isDirty()
When dirty is false that means that the calculated value can be used


setup

void setup()
Currently not super well define used for 2 purposes: Reset: called from the outside if you want to reuse it init: Called from the inside when calculation start to have everything setup maybe the semantic could work for both? TODO: This should be separated better.



Copyright © 2008. All Rights Reserved.