package genLRS; /** * Represents an abstract algorithm on an LRStruct. Acts as a visitor to a * LRStruct host. * @author Dung X. Nguyen, Stephen B. Wong Copyright 2005 - All rights reserved. */ public interface IAlgo { /** * Operates on an empty LRStruct host, given an input object. * @param host an empty LRStruct. * @param inp input object needed by this IVisitor. * @return an appropriate output object. */ public abstract R emptyCase(LRStruct host, P... inp); /** * Operates on a non-empty LRStruct host, given an input object. * @param host a non-empty LRStruct. * @param inp input object needed by this IVisitor. * @return an appropriate output object. */ public abstract R nonEmptyCase(LRStruct host, P... inp); }