|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstresstests.algorithms.ASortAlgo<T>
public abstract class ASortAlgo<T>
ASortAlgo 22 March 2007 An interface to represent one sorting algorithm
Field Summary | |
---|---|
java.lang.String |
algoName
The name of the sorting algorithm being tested |
java.util.Comparator<T> |
comp
The Comparator that determines the sort order |
Constructor Summary | |
---|---|
ASortAlgo()
|
Method Summary | |
---|---|
abstract void |
initData(Traversal<T> tr)
initialize a data set with the data generated by the traversal |
abstract Traversal<T> |
sort()
sort the data set with respect to the given Comparator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.Comparator<T> comp
Comparator
that determines the sort order
public java.lang.String algoName
Constructor Detail |
---|
public ASortAlgo()
Method Detail |
---|
public abstract void initData(Traversal<T> tr)
tr
- the Traversal
that generates
the data to be sortedpublic abstract Traversal<T> sort()
Comparator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |