lrs.visitor
Class AGetExtrema

java.lang.Object
  extended by lrs.visitor.AGetExtrema
All Implemented Interfaces:
IAlgo
Direct Known Subclasses:
GetMax, GetMin

public abstract class AGetExtrema
extends java.lang.Object
implements IAlgo

Abstract class for comparison operations for selection sort.


Constructor Summary
AGetExtrema()
           
 
Method Summary
abstract  java.lang.Object emptyCase(LRStruct host, java.lang.Object... param)
          Operates on an empty LRStruct host, given an input object.
abstract  java.lang.Object nonEmptyCase(LRStruct host, java.lang.Object... param)
          Operates on a non-empty LRStruct host, given an input object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AGetExtrema

public AGetExtrema()
Method Detail

emptyCase

public abstract java.lang.Object emptyCase(LRStruct host,
                                           java.lang.Object... param)
Description copied from interface: IAlgo
Operates on an empty LRStruct host, given an input object.

Specified by:
emptyCase in interface IAlgo
Parameters:
host - an empty LRStruct.
param - variable input list of objects needed by this IVisitor.
Returns:
an appropriate output object.

nonEmptyCase

public abstract java.lang.Object nonEmptyCase(LRStruct host,
                                              java.lang.Object... param)
Description copied from interface: IAlgo
Operates on a non-empty LRStruct host, given an input object.

Specified by:
nonEmptyCase in interface IAlgo
Parameters:
host - a non-empty LRStruct.
param - variable input list of objects needed by this IVisitor.
Returns:
an appropriate output object.