lrs
Interface IAlgo

All Known Implementing Classes:
Apply, Clear, GetLength, GetNth, Remove

public interface IAlgo

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

LRStruct host.

Since:
10/09/01
Author:
Dung X. Nguyen Copyright 2001 - All rights reserved.

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 - input object needed by this IAlgo.
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 - input object needed by this IAlgo.
Returns:
an appropriate output object.