public class Driver extends java.lang.Object implements DriverInterface
DriverInterface.QueueTestType, DriverInterface.QueueType, DriverInterface.StackTestType, DriverInterface.StackType| Modifier and Type | Field and Description |
|---|---|
private int |
MAX_NUMBER_OF_QUEUE_ELEMENTS |
private int |
MAX_NUMBER_OF_STACK_ELEMENTS |
| Constructor and Description |
|---|
Driver() |
| Modifier and Type | Method and Description |
|---|---|
QueueInterface<java.lang.String> |
createQueue(DriverInterface.QueueType queueType,
DriverInterface.QueueTestType queueTestType)
This method is used to create a new queue of the specified queueType.
|
StackInterface<java.lang.String> |
createStack(DriverInterface.StackType stackType,
DriverInterface.StackTestType stackTestType)
This method is used to create a new stack of the specified stackType.
|
static void |
main(java.lang.String[] args) |
TestTimes |
runQueueTestCase(DriverInterface.QueueType queueType,
DriverInterface.QueueTestType queueTestType,
int numberOfTimes)
This method is called to run a particular test case on a queue type the specified number of times.
|
TestTimes |
runStackTestCase(DriverInterface.StackType stackType,
DriverInterface.StackTestType stackTestType,
int numberOfTimes)
This method is called to run a particular test case on a stack type the specified number of times.
|
private static void |
showMemoryHeader(java.lang.String title) |
private final int MAX_NUMBER_OF_QUEUE_ELEMENTS
private final int MAX_NUMBER_OF_STACK_ELEMENTS
public QueueInterface<java.lang.String> createQueue(DriverInterface.QueueType queueType, DriverInterface.QueueTestType queueTestType)
DriverInterfacecreateQueue in interface DriverInterfacequeueType - This parameter specifies the type of queue to create. See the enum DriverInterface.QueueType.queueTestType - This parameter specifies the type of test that the queue is being created for. See the enum
DriverInterface.QueueTestType.public StackInterface<java.lang.String> createStack(DriverInterface.StackType stackType, DriverInterface.StackTestType stackTestType)
DriverInterfacecreateStack in interface DriverInterfacestackType - This parameter specifies the type of stack to create. See the enum DriverInterface.StackType.stackTestType - This parameter specifies the type of test that the stack is being created for. See the enum
DriverInterface.StackTestType.public TestTimes runQueueTestCase(DriverInterface.QueueType queueType, DriverInterface.QueueTestType queueTestType, int numberOfTimes)
DriverInterfacerunQueueTestCase in interface DriverInterfacequeueType - The type of queue needed for the test case. See the enum DriverInterface.QueueType.queueTestType - The type of test case being run. See the enum DriverInterface.QueueTestType.numberOfTimes - This parameter specifies the number of times to run the specified test.TestTimes class containing the test times and memory usages.public TestTimes runStackTestCase(DriverInterface.StackType stackType, DriverInterface.StackTestType stackTestType, int numberOfTimes)
DriverInterfacerunStackTestCase in interface DriverInterfacestackType - The type of stack needed for the test case. See the enum DriverInterface.StackType.stackTestType - The type of test case being run. See the enum DriverInterface.StackTestType.numberOfTimes - This parameter specifies the number of times to run the specified test.TestTimes class containing the test times and memory usages.private static void showMemoryHeader(java.lang.String title)
public static void main(java.lang.String[] args)