edu.gwu.algtest
Interface SearchAlgorithm

All Superinterfaces:
edu.gwu.algtest.Algorithm
All Known Subinterfaces:
OrderedSearchAlgorithm

public interface SearchAlgorithm
extends edu.gwu.algtest.Algorithm

Search algorithms need to implement interface SearchAlgorithm while usually implementing OrderedSearchAlgorithm or EqualitySearchAlgorithm

See Also:
Algorithm

Method Summary
 int getCurrentSize()
          Return the current number of items in the data structure.
 java.util.Enumeration getKeys()
          getKeys should return an Enumeration that can iterate through the keys.
 java.util.Enumeration getValues()
          getValues should return and Enumeration that can iterate through values.
 void initialize(int maxSize)
          initialize will be called to set the maximum size for algorithms that must create fixed-size space.
 
Methods inherited from interface edu.gwu.algtest.Algorithm
getName, setPropertyExtractor
 

Method Detail

initialize

public void initialize(int maxSize)
initialize will be called to set the maximum size for algorithms that must create fixed-size space.
Parameters:
maxSize - an int value

getCurrentSize

public int getCurrentSize()
Return the current number of items in the data structure.
Returns:
an int value

getKeys

public java.util.Enumeration getKeys()
getKeys should return an Enumeration that can iterate through the keys.
Returns:
an Enumeration value

getValues

public java.util.Enumeration getValues()
getValues should return and Enumeration that can iterate through values.
Returns:
an Enumeration value