|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDriver
public class Driver
Nested Class Summary | |
---|---|
static class |
Driver.VectorType
This enum specifies the type that Vector to be created The VectorType enum has the following values:
Identical
All the Integer Objects are identical in value.
Random
All the Integer Objects are random in value.
Increasing
All the Integer Objects are increasing in value.
Decreasing
All the Integer Objects are decreasing in value.
IncreasingAndRandom
80% the Integer Objects are increasing in value, the rest
are random in value.
|
Constructor Summary | |
---|---|
Driver()
|
Method Summary | |
---|---|
static void |
clearRunTimes()
This method clears the array of run times to all zeros |
static long[] |
getRunTimes()
This method returns the array of run times that was generated by the previous call to runTestCase() |
static java.util.Vector<java.lang.Integer> |
getVectorOfIntegers(Driver.VectorType vectorType)
This method creates a Vector of the specified size containing Integer
Objects representing identical numbers. |
static void |
main(java.lang.String[] args)
|
static void |
runMergeSort(Driver.VectorType vectorType)
This method is called to run a MergeSort on the specified type of Vector a total of ten times. |
static void |
runQuickSort(Driver.VectorType vectorType,
QuickSort.PivotType pivotType)
This method is called to run a MergeSort on the specified type of Vector a total of ten times. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Driver()
Method Detail |
---|
public static long[] getRunTimes()
runTestCase()
public static void clearRunTimes()
public static java.util.Vector<java.lang.Integer> getVectorOfIntegers(Driver.VectorType vectorType)
Integer
Objects representing identical numbers.
vectorType
- This parameter specifies the type of Vector to create.
Integer
Objects as specified by
vectorType
public static void runMergeSort(Driver.VectorType vectorType)
vectorType
- The type of vector to use for MergeSort. The choices are:
public static void runQuickSort(Driver.VectorType vectorType, QuickSort.PivotType pivotType)
vectorType
- The type of vector to use for MergeSort. The choices are:
pivotType
- The method of selecting the pivot while performing QuickSort.
The choices are:
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |