lrs
Interface IAlgo

All Known Implementing Classes:
AGetExtrema, AGetMin, GetLast, GetMax, GetMin, LazyFilterEval, LRSAppend, LRSClear, LRSOrderedInsert, LRSPrint, LRSPrintN, LRSSum, LRSSumLambdaN, LRSSumN, LRSTrim, Nth, NthCdr, RemLeadMods, RemoveItem, RemoveNth, SelectionSort, SetNth, SkipLeadMods

public interface IAlgo

Represents an abstract algorithm on an LRStruct. Acts as a visitor to a LRStruct host.

Since:
8/25/05

Method Summary
 java.lang.Object emptyCase(LRStruct host, java.lang.Object... inp)
          Operates on an empty LRStruct host, given an input object.
 java.lang.Object nonEmptyCase(LRStruct host, java.lang.Object... inp)
          Operates on a non-empty LRStruct host, given an input object.
 

Method Detail

emptyCase

java.lang.Object emptyCase(LRStruct host,
                           java.lang.Object... inp)
Operates on an empty LRStruct host, given an input object.

Parameters:
host - an empty LRStruct.
inp - variable input list of objects needed by this IVisitor.
Returns:
an appropriate output object.

nonEmptyCase

java.lang.Object nonEmptyCase(LRStruct host,
                              java.lang.Object... inp)
Operates on a non-empty LRStruct host, given an input object.

Parameters:
host - a non-empty LRStruct.
inp - variable input list of objects needed by this IVisitor.
Returns:
an appropriate output object.