lrs.lazyLRSEvaluators
Class LazyFibEval

java.lang.Object
  extended by lrs.ALazyEval
      extended by lrs.lazyLRSEvaluators.LazyFibEval

public class LazyFibEval
extends ALazyEval


Field Summary
private  int _fn1
           
private  int _fn2
           
 
Constructor Summary
LazyFibEval(int fn2, int fn1)
           
 
Method Summary
 LRStruct makeLRS()
          Factory method to correctly create the lazy list with this ILazyEval as the strategy for lazy evaluation.
 LRStruct nextLRS()
          Performs lazy evaluation to compute the next LRStruct when needed.
 
Methods inherited from class lrs.ALazyEval
makeLazyLRS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_fn1

private int _fn1

_fn2

private int _fn2
Constructor Detail

LazyFibEval

public LazyFibEval(int fn2,
                   int fn1)
Method Detail

nextLRS

public LRStruct nextLRS()
Description copied from class: ALazyEval
Performs lazy evaluation to compute the next LRStruct when needed.

Specified by:
nextLRS in class ALazyEval

makeLRS

public LRStruct makeLRS()
Description copied from class: ALazyEval
Factory method to correctly create the lazy list with this ILazyEval as the strategy for lazy evaluation.

Specified by:
makeLRS in class ALazyEval
Returns: