public interface QueueDriverInterface
| Modifier and Type | Interface and Description |
|---|---|
static class |
QueueDriverInterface.QueueType
The
QueueType enum has the following values:
ArrayBasedQueue
LinkedQueue
|
static class |
QueueDriverInterface.TestType
The
QueueTestType enum has the following values:
Enqueue
Dequeue
DequeueRandom
|
| Modifier and Type | Method and Description |
|---|---|
QueueInterface<java.lang.String> |
createQueue(QueueDriverInterface.QueueType queueType,
QueueDriverInterface.TestType testType)
This method is used to create a new queue of the specified queueType.
|
java.lang.Object[] |
runTestCase(QueueDriverInterface.QueueType queueType,
QueueDriverInterface.TestType queueTestType,
int numberOfTimes)
This method is called to run a particular testType on a queue of type queueType for the specified
numberOfTimes.
|
QueueInterface<java.lang.String> createQueue(QueueDriverInterface.QueueType queueType, QueueDriverInterface.TestType testType)
queueType - This parameter specifies the type of queue to create. See the enum QueueDriverInterface.QueueType.testType - This parameter specifies the type of test that the queue is being created for. See the enum
QueueDriverInterface.TestType.java.lang.Object[] runTestCase(QueueDriverInterface.QueueType queueType, QueueDriverInterface.TestType queueTestType, int numberOfTimes)
This method is called to run a particular testType on a queue of type queueType for the specified numberOfTimes. The test time and memory usage for each test is saved in the TestTimes class.
This method repeats the following numberOfTimes:
queueType - The type of queue needed for the test case. See the enum QueueDriverInterface.QueueType.queueTestType - The type of test case being run. See the enum QueueDriverInterface.TestType.numberOfTimes - This parameter specifies the number of times to run the specified test.