Interface lrs.IAlgo


public interface IAlgo
extends Object
Represents an abstract algorithm on an LRStruct. Acts as a visitor to a LRStruct host.

Author:
Dung X. Nguyen Copyright 2001 - All rights reserved.

Method Index

 o emptyCase (LRStruct, Object)
Operates on an empty LRStruct host, given an input object
 o nonEmptyCase (LRStruct, Object)
Operates on a non-empty LRStruct host, given an input object

Methods

 o emptyCase
public abstract 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.
 o nonEmptyCase
public abstract 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.