|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttimertests.Result
public class Result
To represent the result of one run of the timer tests
Field Summary | |
---|---|
protected java.lang.String |
algoName
the name of the algorithm that generated the timing data |
protected java.lang.String |
compName
the name of the Comparator that was used to sort data |
protected long |
runtime
the measured runtime (of the given algorithm on the given dataset of the given size with the given comparator) |
protected int |
size
the size of the dataset that was sorted |
protected java.lang.String |
type
the organization of the dataset: sequential or random |
Constructor Summary | |
---|---|
protected |
Result(int size,
java.lang.String type,
java.lang.String algoName,
java.lang.String compName,
long runtime)
The full constructor |
Method Summary | |
---|---|
static void |
main(java.lang.String[] argv)
Self Test |
java.lang.String |
toString()
Represent the result as a well formatted string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int size
protected java.lang.String type
protected java.lang.String algoName
protected java.lang.String compName
Comparator
that was used to sort data
protected long runtime
Constructor Detail |
---|
protected Result(int size, java.lang.String type, java.lang.String algoName, java.lang.String compName, long runtime)
size
- the size of the dataset that was sortedtype
- the organization of the dataset: sequential or randomalgoName
- the name of the algorithm that generated the timing datacompName
- the name of the Comparator
that was used to sort dataruntime
- the measured runtime (of the given algorithm on the given dataset
of the given size with the given comparator)Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |