lrs
Interface IAlgo


public interface IAlgo

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

Since:
02/09/05
Author:
Dung X. Nguyen Copyright 2005 - All rights reserved.

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

Method Detail

emptyCase

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

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

nonEmptyCase

Object nonEmptyCase(LRStruct host,
                    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 IVisitor.
Returns:
an appropriate output object.