Interface schemeFW.IListAlgo


public interface IListAlgo
extends Object
Visitor representing an abstract algorithm to be executed by a host IList. Breaks up an algorithm into two separate cases:
emptyCase() - to be called by an IEmptyList host;
nonEmptyCase() - to be called by an INEList host.

Author:
Dung X. Nguyen, Stephen B. Wong

Method Index

 o emptyCase (IEmptyList, Object)
The method called by IEmptyList, the empty list
 o nonEmptyCase (INEList, Object)
The method called by a INEList, a non-empty list

Methods

 o emptyCase
public abstract Object emptyCase(IEmptyList host, Object inp)
The method called by IEmptyList, the empty list.

Parameters:
host - The IEmptyList that is executing this algorithm.
inp - generic input parameter that can be used for any purpose.
Returns:
Object result from calling this method.
 o nonEmptyCase
public abstract Object nonEmptyCase(INEList host, Object inp)
The method called by a INEList, a non-empty list.

Parameters:
host - The INEList that is executing this algorithm
inp - generic input parameter that can be used for any purpose.
Returns:
Object result from calling this method.