edu.gwu.algtest
Interface Algorithm

All Known Subinterfaces:
PartitionAlgorithm, SortingAlgorithm

public interface Algorithm

Interface Algorithm is the top-level interface from which is derived specific interfaces for particular algorithms. Thus, a sorting algorithm will implement an interface derived from this one.


Method Summary
 java.lang.String getName()
          getName should return your name and the name of your algorithm, e.g., "Batman's implementation of SelectionSort".
 void setPropertyExtractor(int algID, edu.gwu.util.PropertyExtractor prop)
          setPropertyExtractor will be called by the simulator with an instance of PropertyExtractor which an algorithm can use to extract properties from the original properties file. You do not need to have any code in this method if you aren't going to use this parameter. Just implement the method signature with an empty body.
 

Method Detail

getName

public java.lang.String getName()
getName should return your name and the name of your algorithm, e.g., "Beavis' implementation of SelectionSort".
Returns:
a String value

setPropertyExtractor

public void setPropertyExtractor(int algID,
                                 edu.gwu.util.PropertyExtractor prop)
setPropertyExtractor will be called by the simulator with an instance of PropertyExtractor which an algorithm can use to extract properties from the original properties file.
Parameters:
algID - an int value - the ID assigned to the algorithm so that algorithm-specific properties can be extracted from the property file.
prop - a PropertyExtractor value